Expand causing server post back

2 posts, 0 answers
  1. Andy Macourek
    Andy  Macourek avatar
    30 posts
    Member since:
    Mar 2010

    Posted 04 Oct 2012 Link to this post

    I created a new page with code from a grid from another page.  For some reason, when I expand the rows, the page performs a post back to the server.  I have the HierarchyLoadMode for the MasterTableView set to "Client".  This works on the other page just fine.  Any ideas?

    <rad:RadGrid ID="GridSummary" runat="server" OnColumnCreated="Grid_ColumnCreated"
        OnItemCreated="Grid_ItemCreated" OnItemDataBound="Grid_ItemDataBound"
        EnableEmbeddedSkins="false" Skin="MetroMagenta" Width="900px" AutoGenerateColumns="false">
        <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client"
            DataKeyNames="RecordId, ParentRecordId, RecordName"
            <SelfHierarchySettings ParentKeyName="ParentRecordId" KeyName="RecordId" />
                <rad:GridBoundColumn DataField="RecordName" UniqueName="RecordName" HeaderText="" />
                <rad:GridBoundColumn DataField="SocialVolume" UniqueName="SocialVolume" HeaderText="Social Volume"  HeaderStyle-Width="150px" ItemStyle-Width="150px" />
                <rad:GridBoundColumn DataField="CaseVolume" UniqueName="CaseVolume" HeaderText="Case Volume"  HeaderStyle-Width="150px" ItemStyle-Width="150px" />
                <rad:GridBoundColumn DataField="HelpVolume" UniqueName="HelpVolume" HeaderText="Help Volume"  HeaderStyle-Width="150px" ItemStyle-Width="150px" />
        <ClientSettings AllowExpandCollapse="true" />
  2. Angel Petrov
    Angel Petrov avatar
    1002 posts

    Posted 08 Oct 2012 Link to this post

    Hi Andy,

    When using self-hierarchical grid advanced data binding using NeedDataSource is the recommended approach. Self-hierarchical structure is not supported if simple data binding is used. Could you confirm that you are not using simple data binding? Also another reason for a postback may be if you have a javascript error in the page. Could you confirm that you don`t have a javascript error?

    All the best,
    Angel Petrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top