Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Grid > Radgrid client side error about expand/collapse
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Radgrid client side error about expand/collapse

Feed from this thread
  • e avatar

    Posted on Jun 21, 2011 (permalink)

    Hi,
    I have an issue in Radgrid client side expand/collapse. It works fine for the expand/collapse itself. However, it will raise the error when you click any other buttons like fliter or sort after the expand/collapse done.
    If you don't click the expand/collapse , all others working fine. It only happens after you expand/collapse.
    The followings are the error message and my code.

    Thanks a lot !

       
    Line: 6
    Error: Sys.WebForms.PageRequestManagerServerErrorException: Specified argument was out of the range of valid values.
    Parameter name: ItemHierarchicalIndex



    <

     

     

    telerik:RadGrid ID="SearchDetailObjectRadGrid" runat="server" AllowPaging="False" AllowSorting="true" OnItemCommand="SearchDetailObjectRadGrid_ItemCommand" GroupingSettings-CaseSensitive="false"

     

    ShowStatusBar="true" AutoGenerateColumns="False" GridLines="Both" OnSortCommand="SearchDetailObjectRadGrid_sort" OnItemDataBound="SearchDetailObjectRadGrid_ItemDataBound"

     

    OnDetailTableDataBind="SearchDetailObjectRadGrid_DetailTableDataBind" OnPreRender="SearchDetailObjectRadGrid_PreRender"

     

    Width="99%" Height="99%" ViewStateMode="Enabled" EnableViewState="true">

     

    <ClientSettings EnableRowHoverStyle="True" AllowExpandCollapse="true" >

     

    <Selecting AllowRowSelect="true" />

     

    <Scrolling AllowScroll="true" UseStaticHeaders="false" />

     

    <ClientEvents />

     

    </ClientSettings>

     

    <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID,TransTypeID,TransferGroupID" AllowFilteringByColumn="True" AllowSorting="true"

     

    DataSourceID="dsTranscations" HierarchyLoadMode="Client"

     

    >

     

    <DetailTables >

     

    <telerik:GridTableView DataKeyNames="ID,TransferGroupID" DataSourceID="dsTransferGroupLookup" ShowHeader="true"

     

    Width="100%" runat="server"

     

    >

     

    <Columns>

     

    <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="false">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="TransTypeID" HeaderText="TransTypeID" UniqueName="TransTypeID"

     

    Visible="false">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="TransferGroupID" HeaderText="TransferGroupID" UniqueName="TransferGroupID"

     

    Visible="false">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="Investor" HeaderText="Investor" UniqueName="Investor"

     

    Visible="true" SortExpression="Investor">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="TransType" HeaderText="Type" UniqueName="TransType"

     

    Visible="true" SortExpression="TransType">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridDateTimeColumn DataField="EffDate" HeaderText="Date" UniqueName="EffDate"

     

    Visible="true" SortExpression="EffDate" DataFormatString="{0:d}">

     

    </telerik:GridDateTimeColumn>

     

    <telerik:GridBoundColumn DataField="class" HeaderText="Class" UniqueName="class"

     

    Visible="true" SortExpression="Class">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="Shares" HeaderText="Shares" DataFormatString="{0:###,###.##}"

     

    ItemStyle-HorizontalAlign="Right" UniqueName="Shares" SortExpression="Shares">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" DataFormatString="{0:###,###.##}"

     

    ItemStyle-HorizontalAlign="Right" UniqueName="Amount" SortExpression="Amount">

     

    </telerik:GridBoundColumn>

     

    </Columns>

     

    </telerik:GridTableView>

     

    </DetailTables>

     

    <Columns>

     

    <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="false">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="TransTypeID" HeaderText="TransTypeID" UniqueName="TransTypeID" Visible="false">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn

     

    DataField="Investor" HeaderText="Investor" UniqueName="Investor" Visible="true" SortExpression="Investor">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="TransferGroupID" HeaderText="TransferGroupID" UniqueName="TransferGroupID"

     

    Visible="false">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn

     

    DataField="TransType" HeaderText="Type" UniqueName="TransType" Visible="true" SortExpression="TransType">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridDateTimeColumn DataField="EffDate" HeaderText="Date" UniqueName="EffDate" Visible="true" SortExpression="EffDate" DataFormatString="{0:d}">

     

    </telerik:GridDateTimeColumn>

     

    <telerik:GridBoundColumn

     

    DataField="class" HeaderText="Class" UniqueName="class" Visible="true" SortExpression="Class">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="Shares" HeaderText="Shares" DataFormatString="{0:###,###.##}" ItemStyle-HorizontalAlign="Right"

     

    UniqueName="Shares" SortExpression="Shares">

     

    </telerik:GridBoundColumn>

     

    <telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" DataFormatString="{0:###,###.##}" ItemStyle-HorizontalAlign="Right"

     

    UniqueName="Amount" SortExpression="Amount">

     

    </telerik:GridBoundColumn>

     

    </Columns>

    <%

     

    -- <PagerStyle AlwaysVisible="True" />--%>

     

    </MasterTableView>

     

    <PagerStyle Wrap="False" />

     

    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" EnableImageSprites="True">

     

    </HeaderContextMenu>

     

    </telerik:RadGrid>

  • Iana Tsolova Iana Tsolova admin's avatar

    Posted on Jun 24, 2011 (permalink)

    Hello e,

    The message you receive is not a client-side error. In fact it indicates that server-side error exception was thrown. To see where the error comes from, try disabling ajax and run the page in Debug mode.

    Best wishes,
    Iana
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Grid > Radgrid client side error about expand/collapse