<telerik:RadGrid ID="rgPOsNew" runat="server" ShowGroupPanel="True" AutoGenerateColumns="False" AllowPaging="False" AllowSorting="True" Width="98%" EnableTheming="False" GridLines="None" OnNeedDataSource="rg_NeedDataSource">
<ClientSettings AllowDragToGroup="True" AllowGroupExpandCollapse="True" AllowColumnsReorder="True">
<Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True">
</Resizing>
<Scrolling AllowScroll="True" UseStaticHeaders="False" ScrollHeight="400px" />
</ClientSettings>
<HeaderStyle Wrap="True" HorizontalAlign="Center" VerticalAlign="Middle" Height="20px" />
<GroupPanel>
</GroupPanel>
<MasterTableView HorizontalAlign="Center" GroupLoadMode="Client" Width="98%">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<GroupByFields>
<telerik:GridGroupByField FieldAlias="JobNumber" FieldName="JobNumber" />
</GroupByFields>
<SelectFields>
<telerik:GridGroupByField FieldAlias="JobNumber" FieldName="JobNumber" />
</SelectFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<GroupHeaderItemStyle BackColor="LightSteelBlue" />
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<AlternatingItemStyle BackColor="#E0E0E0" />
<ItemStyle BackColor="White" />
<Columns>
ASPX:-
<asp:TreeView Runat="Server" OnTreeNodePopulate="Node_Populate" ID="treeView1" OnTreeNodeExpanded="Node_Expand"><Nodes><asp:TreeNode Text="ALL" PopulateOnDemand= "true" Value="0" /></Nodes></asp:TreeView>CS file:-
public void Node_Populate(object sender, System.Web.UI.WebControls.TreeNodeEventArgs e) { if (e.Node.ChildNodes.Count == 0) { switch (e.Node.Depth) { case 0: FillTerritories(e.Node); break; case 1: FillOrganizations(e.Node); break; case 2: FillOffices(e.Node); break; } } }<telerik:RadTreeView Runat="Server" ID="RadTreeView1" Skin="Vista" OnNodeExpand = "Rad_NodeExpand" > </telerik:RadTreeView>protected void Rad_NodeExpand(object sender, RadTreeNodeEventArgs e) { if (e.Node.Nodes.Count == 0) { switch (e.Node.Level) { case 0: FillTerritories(e.Node); break; case 1: FillOrganizations(e.Node); break; case 2: FillOffices(e.Node); break; } } }
function getRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow; } function closeWindow() { getRadWindow().close(); }Hello,
I have faced javascript issue in using RadInputManger on a composite control. The composite control having RadInputManager is used in custom user control. This custom user control is loaded in RadMultiPage where this causes javascript error (($find(‘”)… eval(disposescript[i])) )in ajax function below. Error occurs in line in bold below.
-------------------------
_updatePanel: function PageRequestManager$_updatePanel(updatePanelElement, rendering) {
for (var updatePanelID in this._scriptDisposes) {
if (this._elementContains(updatePanelElement, document.getElementById(updatePanelID))) {
var disposeScripts = this._scriptDisposes[updatePanelID];
for (var i = 0, l = disposeScripts.length; i < l; i++) {
window.eval(disposeScripts[i]);
}
delete this._scriptDisposes[updatePanelID];
}
}
-----------------------
If I remove use of RadInputManager from composite control, issue doesnt get produce. The error can be seen in Firebug in FF and IE developer in IE.
Thanks in advance,
Ravi
Hi,
I have this weird behaviour on one of my radgrid where the height is cut off. So the area where the rows are displayed are shorter ( I think its the rgDataDiv) .I have to say the page i have it it is quiet complex and involves a lot of dynamic controls... not sure if this is the cause...but this behaviour is only seen after a sequence of clicks ( i can always reproduce it ).
Landing on the page originally does not show the bug, but after a series of clicks ( a consistent pattern ) it happens... I'm gonna try to post my grid source and the behaviour and the generated HTML first to see... hopefully its just a stupid setting i forgot to set which you can point out...
Otherwise, If required, I'll post the full page...
Here's the Grid... Notice I've forced it to have a height of 493px.
<div style="margin-left: 12px; margin-top: 40px; clear: both;"> <%--Grid Selected Shopping List--%> <telerik:RadGrid ID="grdSelectedList" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" ShowHeader="False" OnNeedDataSource="grdSelectedList_NeedDataSource" OnItemCommand="grdSelectedList_ItemCommand" OnItemCreated="grdSelectedList_ItemCreated" OnItemDataBound="grdSelectedList_ItemDataBound" Height="493px" Width="595px" Skin="gmBlueGrid" EnableEmbeddedSkins="False" Style="outline: none;" EnableViewState="false"> <GroupingSettings ShowUnGroupButton="True" /> <ClientSettings> <Selecting AllowRowSelect="True" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> <ClientEvents OnRowClick="grdSelectedList_RowClick" /> </ClientSettings> <MasterTableView DataKeyNames="Account_ID, Item_ID, List_ID, Product_ID" ClientDataKeyNames="Account_ID, Item_ID, List_ID, Product_ID"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="Category_Name" /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="Category_Name" /> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <NoRecordsTemplate> This list is empty.<br /> Click in "Add an Item" or "Browse Aisles" to add items to this list. </NoRecordsTemplate> <CommandItemSettings ExportToPdfText="Export to PDF" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px" /> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn FilterControlAltText="Filter CategoryCol column" UniqueName="CategoryCol" DataField="Category_Name" Groupable="true" Visible="False"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn FilterControlAltText="Filter DescriptionCol column" UniqueName="DescriptionCol" HeaderStyle-Width="455px"> <ItemTemplate> <div style="width: 455px; clear: both; font-weight: bold; margin-left: -5px;"> <asp:Label ID="lblItemDescription" runat="server" CssClass="blackHyperlink"></asp:Label> </div> <div class="slGridDescription" style="margin-left: -5px;"> <%# DataBinder.Eval(Container.DataItem, "Detail_Line_Display") %></div> </ItemTemplate> <HeaderStyle Width="455px"></HeaderStyle> </telerik:GridTemplateColumn> <telerik:GridBoundColumn FilterControlAltText="Filter QtyCol column" UniqueName="QtyCol" DataField="Size_Description" HeaderStyle-Width="70px" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right"> <HeaderStyle Width="70px"></HeaderStyle> <ItemStyle HorizontalAlign="Right" Font-Bold="True"></ItemStyle> </telerik:GridBoundColumn> <telerik:GridTemplateColumn> <ItemTemplate> <telerik:RadButton ID="btnDeleteItem" runat="server" CommandName="DeleteItemFromShoppingList" OnClientClicking="ConfirmDelete" Width="18" Height="20"> <Image ImageUrl="..\Images\icoDeleteRedX.gif" /> </telerik:RadButton> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> <WebServiceSettings> <ODataSettings InitialContainerName=""> </ODataSettings> </WebServiceSettings> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> <WebServiceSettings> <ODataSettings InitialContainerName=""> </ODataSettings> </WebServiceSettings> </HeaderContextMenu> </telerik:RadGrid> <br /></div>
Attached are 4 images:
Generated HTML output of the Grid before; Note the height in the outer div of height 493px and the inner rgDataDiv ( I'm assuming it is inherited from the RadGrid declaration )
Generated HTML output of the Grid after; the height of outer div is still 493, but the rgDataDiv is now set to 300 px? Not sure where this comes from .
Display Before and After
Additional Information regarding the set up , in case it is related to the way this grid is set up:
I have modified the gridCSS so that it displays according to a spec i received... The Rows are always grouped by the category ...
Regarding the Page / UC set up, I have a Page 1 which uses a Master Template. In the Page, it has 3 states ( 3 custom NON-Telerik TABS ). By default it calls this dynamic UC (call it TAB 1) which has the RadGrid. When I Click on TAB 3, it calls another Dynamic UC replacing the content of the placeholder completely. Now I leave this page to Page 2, then come back to Page 1. This time, because I have a Session variable to save the state of the last Visited TAB in page 1, It loads Page 1 with TAB 3. When I click on TAB 1, to display the RadGrid , this is where this behaviour is obtained.