How to expand ComponentOne web report in C# - web

I am using componentOne web report in my system. Currently,we need to increase the width of the report to fit the entire screen. I have written java script to increase div width size, but data inside the report is not expanding based on the width. Please suggest a better approach.
<cc1:C1WebReport ID="C1WebReport1" runat="server" ExportFolder="/report/" Scrollable="False"
Visible="False" CallbackWaitImageUrl="~/Images/load.gif" class="control_label" Width="100%">
<NavigationBar HasExportButton="True" Align="Center" HasGotoPageButton="True">
<Images ExportImageUrl="~/Images/ExportDetailsv2.png" GotoPageImageUrl="~/Images/gov6.png" />
<DisabledImages ExportImageUrl="~/Images/ExportDetailsv2.png"
GotoPageImageUrl="~/Images/gov6.png" />
<MouseOverImages ExportImageUrl="~/Images/ExportDetailsv2.png" GotoPageImageUrl="~/Images/gov6.png" />
</NavigationBar>
</cc1:C1WebReport>

Related

Doing the Drag and Drop from one Grid to Another Grid made Form elements Irregular

Hi, I am Implementing the Drag Drop functionality using the Link
http://examples.ext.net/#/DragDrop/Grid/Grid_to_Grid/
and i have implemented this on my form as when i click on One Grid
Column setting Icon that gridpanel should be hide and this
panel(ID:pnlGridDragDrop) which are containing two DragDrop grids
should be visible.
after Displaying the pnlGridDragDrop when i trying to Drag items from
first Grid to another the above Tab Design becomes disappear.
What is the Reason here.
Please find the Image i have attached and the Code in my Program is as
like below.
<ext:GridPanel ID="grdProjectsView" Width="705" Title="Projects" >
---
columns
------
<ext:ImageCommandColumn ID="imgSettings" runat="server" Text="Settings" Resizable="false">
<Commands>
<ext:ImageCommand Icon="BasketEdit" Style="text-align: center" CommandName="Settings">
</ext:ImageCommand>
</Commands>
<Listeners>
<Command Handler="#{DirectMethods}.fnDisplaySettings(record.data.ProjectID,record.data.ProjectName);" />
</Listeners>
</ext:ImageCommandColumn>
---
---
</ColumnModel>
</ext:GridPanel>
// Drag Drop Grids Panel
<ext:Panel ID="pnlProjMemberGrid" runat="server" Border="false">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Stretch" Padding="5" />
</LayoutConfig>
<Items>
<ext:GridPanel ID="grdNonProjectEmloyeeList">
</ext:GridPanel>
<ext:GridPanel ID="grdProjectEmloyeeList">
</ext:GridPanel>
Thank you.
Need to adjust the Heights of the panels/Container

Ext.net 2.0 ComboBox, tiny bug

I have a very tricky issue which bothered me really long..
I was trying to use Ext.net 2.0 combobox to display options from remote DB. Everything works fine, but there is only one issue, when the page first loaded, if I do not change a selection of the combo, in c#, the combobox.value equals to the text instead of id.
Database is very easy: 'Test_table' has two columns, one called Tid, the other is TextContent.
My frontend code:
<ext:ComboBox ID="TestCombo" runat="server" Editable="false" DisplayField="TextContent"
ValueField="Tid" TypeAhead="true" AllowBlank="false" EmptyText="Select a text
id..." SelectOnFocus="true" FieldLabel="test text">
<Store>
<ext:Store ID="TestStore" runat="server" AutoLoad="true" AutoDataBind="true"
OnReadData="testStore_RefreshData">
<Proxy>
<ext:PageProxy>
</ext:PageProxy>
</Proxy>
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="Tid">
<Fields>
<ext:ModelField Name="Tid" />
<ext:ModelField Name="TextContent" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
After click a save button, I try to add breakpoint to get var _M = TestCombo.value However, it appears that if I click save after I changed the selection of the combobox, _M's value will be correct(equals to Tid value), otherwise, _M's value will be the TextContent..
Anyone has idea what caused this issue? Or does anyone have some good samples for Ext.net 2.0+ combobox code (read from remote db)?

SharePoint FormField doesn't show the content in ControlMode="Display"

I use SharePoint 2010 Standard Edition.
I have custom form for creating/editing items, and few fields with ControlMode="Display", like:
<SharePoint:FieldLabel ID="CustomStatusLabel" runat="server" FieldName="CustomStatus" ControlMode="Display" />
<SharePoint:FormField ID="CustomStatusField" runat="server" FieldName="CustomStatus" ControlMode="Display" />
When I open this form, all fields which are in ControlMode="Edit" displayed properly, but CustomStatus field is displayed exactly like this:
Custom Status ["Custom Status" column value]
Strangely enough, I saw this custom form working on different server...

HTMLEditorExtender width cannot fit %100

Using ajaxcontroltoolkit.as my horror film.
HTMLEditorExtender stays its prerendered width as it is even if I resize the Web Browser
it doesnt detect width resizements:Stays as how it is.
and need a full refresh of browser (F5) makes HTMLEditorExtender to re calcluate its width.
so.
is there a standart way to fix this problem ? otherwise I will use jquery to slap it.or remove this horror control.
<asp:TextBox ID="tbEditor" runat="server"
TextMode="MultiLine" Rows="10" style="width:100%">
</asp:TextBox>
<asp:HtmlEditorExtender ID="tbEditor_HtmlEditorExtender" runat="server"
Enabled="True" TargetControlID="tbEditor">
</asp:HtmlEditorExtender>
a css rule
.containerClass .ajax__html_editor_extender_container
{
width: 100% !important;/*important is really important at here*/
}
and a surrounding div, fixed problem.
<div class="containerClass">
<asp:TextBox ID="tbEditor" runat="server"
TextMode="MultiLine" Rows="10" style="width:100%">
</asp:TextBox>
<asp:HtmlEditorExtender ID="tbEditor_HtmlEditorExtender" runat="server"
Enabled="True" TargetControlID="tbEditor">
</asp:HtmlEditorExtender>
</div>
fixed my problem.hope this helps someone too.

Update Wiki pages to display SharePoint Fields and not break Site Definition

I have a requirement to display SharePoint fields as a footer on only certain pages, so this rules out a master page change, and I haven't had any success with plain-old HTML.
What I'm trying to display is the following code:
<SharePoint:DeveloperDashboard runat="server"/>
<div class="s4-notdlg" style="clear:both; background-color:orange; padding:10px">
<SharePoint:CreatedModifiedInfo ControlMode="Display" runat="server">
<CustomTemplate>
<br>Page Contact: <SharePoint:FormField FieldName="Page Contact" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
<br>Last modified on <SharePoint:FieldValue FieldName="Modified" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
by <SharePoint:FormField FieldName="Author" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
<br>Comments: <SharePoint:FormField FieldName="Check In Comment" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
</CustomTemplate>
</SharePoint:CreatedModifiedInfo>
</div>
When editing the page in Advanced Mode, no matter where I place the code, I break site definition. Is there a good place to insert this code in the page? Or does the Site Definition need to be changed.
Breaking the Site Definition may not be what you are thinking. It is just saying to you that the page is not one of the 'defaults' anymore, as a way to identify what have been customized on the site.
Every edit you make on those pages are like that, so it is OK to get that message. You may also "reset to site definition" when you want to, but this is not usually very stable on my experience.

Resources