This is a migrated thread and some comments may be shown as answers.

Grid grouping

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roman Krsko
Top achievements
Rank 1
Roman Krsko asked on 03 May 2011, 07:34 PM
Hi,

I have telerik RadGrid with grouping. I see group panel with group field, but grid is not group rows (see attachment).
For fill grid I use Webservice and clientside databinging.
This is my code:

<telerik:RadGrid ID="grdResult" runat="server" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
            PageSize="20" Width="100%" BorderStyle="None" EnableEmbeddedSkins="False"
            EnableViewState="true" Culture="de-DE" ShowFooter="True" ShowGroupPanel="True">
            <ClientSettings AllowDragToGroup="True" EnableRowHoverStyle="true" DataBinding-CountPropertyName="CountProduct" DataBinding-DataPropertyName="DataProduct">
                <Selecting AllowRowSelect="true" />
                <DataBinding Location="WebServiceProduct.asmx" SelectMethod="GetDataAndCount" EnableCaching="false"/>
                <ClientEvents OnDataBinding="grdResult_DataBinding" OnDataBound="grdResult_DataBound"/>
            </ClientSettings>
            <HeaderStyle Wrap="False" />
            <MasterTableView GroupLoadMode="Client">
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldAlias="USER_Profile" FieldName="USER_Profile"></telerik:GridGroupByField>
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="USER_Profile"></telerik:GridGroupByField>
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridBoundColumn DataField="GroupIcon" HeaderText="Group" UniqueName="colResultGroup" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Text1" HeaderText="Typ Caption" UniqueName="colResultText1" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="USER_Profile" HeaderText="USER_Profile" UniqueName="USER_Profile" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
                   
...
                </Columns>
            </MasterTableView>
            <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="10" />
            <GroupingSettings ShowUnGroupButton="true" />
        </telerik:RadGrid>

Where I do mistake?
Thanks for answer.

Best regards

Roman

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 06 May 2011, 11:50 AM
Hello Roman,

Grouping is not supported for client-side bound grid. If you want to be able to group a RadGrid, you should bind it server-side through the NeedDataSource event.

Best wishes,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Roman Krsko
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or