Rad grid group ajax

2 posts, 1 answers
  1. Ron
    Ron avatar
    113 posts
    Member since:
    Apr 2011

    Posted 31 Jan 2012 Link to this post

    I'm using rad grid grouping and when expanding groups they should be ajaxified but for some reasons it's still doing a full postback.
    Can you help? Here is the code:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                           <AjaxSettings>
                               <telerik:AjaxSetting AjaxControlID="grdActivity">
                                   <UpdatedControls>
                                       <telerik:AjaxUpdatedControl ControlID="grdActivity" LoadingPanelID="RadAjaxLoadingPanel1" />
                                   </UpdatedControls>
                               </telerik:AjaxSetting>
                           </AjaxSettings>
                       </telerik:RadAjaxManager>
                       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
                       </telerik:RadAjaxLoadingPanel>
                      <div id="RecentActivityContent" class="QuickViewContent">
                         <telerik:RadGrid runat="server" ID="grdActivity" DataSourceID="objActivity" Width="360px"
                          GridLines="Horizontal" Skin="Sunset" ShowHeader="false" >
                          <HeaderStyle CssClass="HistoryGridHeader" />
                           <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                           <MasterTableView AutoGenerateColumns="false" CssClass="GridRecentActivity">
                               <GroupByExpressions>
                                   <telerik:GridGroupByExpression>
                                       <SelectFields>
                                           <telerik:GridGroupByField FieldAlias="Date" FieldName="Date" FormatString="{0:D}"
                                               HeaderValueSeparator=" from date: " />
                                       </SelectFields>
                                       <GroupByFields>
                                           <telerik:GridGroupByField FieldName="Date" SortOrder="Descending" >
                                           </telerik:GridGroupByField>
                                       </GroupByFields>
                                   </telerik:GridGroupByExpression>
                               </GroupByExpressions>
                               <Columns>
                                   <telerik:GridTemplateColumn DataField="Message" HeaderText="Message" UniqueName="Message">
                                       <ItemTemplate>
                                           <asp:Label runat="server" id="Label1" Text='<%# Eval("Type") %>' CssClass="FirstColumn" />   -  
                                           <asp:Label runat="server" id="lblMessage" Text='<%# Eval("Message") %>' />
                                       </ItemTemplate>
                                   </telerik:GridTemplateColumn>
                               </Columns>
                           </MasterTableView>
                           <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                               <Selecting AllowRowSelect="True"></Selecting>
                               <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True"
                               ResizeGridOnColumnResize="False"></Resizing>
               </ClientSettings>
                       </telerik:RadGrid>
    Thanks,
    Ron.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Feb 2012 Link to this post

    Hello,

    You can set GroupLoadMode of MasterTableView as Client inorder to avoid postback.

    Thanks,
    Princy.
Back to Top