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

Radgrid Paging depends on GroupByExpressions?

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Em4o
Top achievements
Rank 2
Em4o asked on 25 Jan 2011, 09:24 AM
So I have an radgrid, which is grouping by Month,Year.
I want to display information for each month on a separate page.
I attached file.
 How i can achieve this. My code is looking like this


    <telerik:RadGrid ID="rgMatches" runat="server" AutoGenerateColumns="False" ShowGroupPanel="True" PageSize="1">
        <MasterTableView AllowSorting="true">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridTemplateColumn UniqueName="OrgDetails" HeaderText="REC" SortExpression="fldOrgName">
                    <ItemTemplate>
                        <div id="divRecInfo">
                            <asp:Label ID="lblRecInfo" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "fldOrgName")%>'></asp:Label>&nbsp;&nbsp;<img
                                id="imgRecInfo" runat="server" src="../icons/magnifier.png" alt="Hover over for REC Address"
                                style="margin: auto;" />
                        </div>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="FldMeetingReference" HeaderText="Meeting Reference"
                    SortExpression="FldMeetingReference" UniqueName="FldMeetingReference">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FldMeetingTitle" HeaderText="Title" SortExpression="FldMeetingTitle"
                    UniqueName="FldMeetingTitle">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FldMeetingcutoffdate" DataType="System.DateTime"
                    HeaderText="Cutoff Date" SortExpression="FldMeetingcutoffdate" UniqueName="FldMeetingcutoffdate"
                    DataFormatString="{0:d}">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FldMeetingstartDate" DataType="System.DateTime"
                    HeaderText="Meeting Date" SortExpression="FldMeetingstartDate" UniqueName="FldMeetingstartDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="SlotCount" DataType="System.Int32" HeaderText="Slots Left"
                    ReadOnly="True" SortExpression="SlotCount" UniqueName="SlotCount">
                </telerik:GridBoundColumn>       
            </Columns>
            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="GroupDateYear" HeaderText="Submission Closing Date Year"
                            SortOrder="Ascending" />
                        <telerik:GridGroupByField FieldName="GroupDateMonth" HeaderText="Submission Closing Date Month"
                            SortOrder="Ascending" />
                    </GroupByFields>
                    <SelectFields>
                        <telerik:GridGroupByField FieldName="GroupDateYear" HeaderText="Submission Closing Date Year" />
                        <telerik:GridGroupByField FieldName="GroupDateMonthName" HeaderText="Submission Closing Date Month" />
                    </SelectFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
            <SortExpressions>
                <telerik:GridSortExpression FieldName="GroupDateMonth" SortOrder="Ascending" />
                <telerik:GridSortExpression FieldName="FldMeetingstartDate" SortOrder="Ascending" />
            </SortExpressions>
        </MasterTableView>
        <GroupingSettings CaseSensitive="False" ShowUnGroupButton="True" />
        <ClientSettings AllowDragToGroup="True">
        </ClientSettings>
    </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 28 Jan 2011, 06:58 AM
Hi Emin,

You cannot achieve this scenario with RadGrid's out-of-the-box features but have to code around it by implementing custom paging:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx

Hope it helps.

Greetings,
Tsvetoslav
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
Em4o
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
Share this question
or