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

Combining GroupByExpressions and Paging

2 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 19 Nov 2012, 11:21 PM
The code that I'm managing used an older version of the Telerik assemblies. We recently upgraded the assemblies to the most recent version. Upon upgrading said files, I received complaints that the paging was no longer showing on a grid. This is weird, since "Allow Paging" is set to True in the markup. I did some playing around and noticed if I removed the GroupByExpressions from the grid, the paging works fine. The GroupByExpressions seems to work fine either way, but is preventing the paging from working. Could someone possibly shine some light on the situation? I've included the grid's code below. Note: Ignore the empty strings; I removed some of the values for security reasons.

<telerik:RadGrid ID="RgStatusGrid" runat="server" AllowPaging="True" GridLines="None"
    AllowSorting="true" PageSize="50" OnNeedDataSource="RgStatusGrid_NeedDataSource"
    OnItemDataBound="OnItemDataBound" OnSortCommand="RgStatusGrid_SortCommand">
    <MasterTableView AutoGenerateColumns="false">
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectRegions>
                    <telerik:GridGroupByRegion RegionName="StateName" HeaderText="State" SortOrder="Ascending" />
                    <telerik:GridGroupByRegion RegionName="CityName" HeaderText="City" SortOrder="Ascending" />
                </SelectRegions>
                <GroupByRegions>
                    <telerik:GridGroupByRegion RegionName="StateName" HeaderText="State" SortOrder="Ascending" />
                    <telerik:GridGroupByRegion RegionName="CityName" HeaderText="City" SortOrder="Ascending" />
                </GroupByRegions>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn UniqueName="StateName" DataRegion="StateName" HeaderText="State" Visible="false" />
            <telerik:GridBoundColumn UniqueName="CityName" DataRegion="CityName" HeaderText="City" Visible="false" />
            <telerik:GridBoundColumn DataRegion="RegionName" HeaderText="Region" />
            <telerik:GridBoundColumn DataRegion="Area" HeaderText="Area (acres)" DataFormatString="{0:F2}" />
            <telerik:GridBoundColumn DataRegion="" HeaderText=""
                DataFormatString="{0:MM/dd/yyyy}" />
            <telerik:GridBoundColumn DataRegion="" HeaderText=""
                DataFormatString="{0:MM/dd/yyyy}" />
            <telerik:GridBoundColumn DataRegion="" HeaderText=""
                DataFormatString="{0:MM/dd/yyyy}" />
            <telerik:GridBoundColumn DataRegion="" HeaderText=""
                DataFormatString="{0:MM/dd/yyyy}" />
            <telerik:GridBoundColumn DataRegion="" HeaderText="" DataFormatString="{0:MM/dd/yyyy}" />
            <telerik:GridBoundColumn DataRegion="" HeaderText="" />
            <telerik:GridBoundColumn DataRegion="" HeaderText="" DataFormatString="{0:MM/dd/yyyy}" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 Nov 2012, 08:40 AM
Hello Brandon,

We are aware of this issue which arises using the 3.5 .Net framework version of RadControls and it has already been fixed. Please download the latest hotfix dlls and the issue should be resolved.

Sorry for any inconvenience caused.

All the best,
Eyup
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.
0
Brandon
Top achievements
Rank 1
answered on 23 Nov 2012, 06:28 PM
Thank you for the assistance.
Tags
Grid
Asked by
Brandon
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Brandon
Top achievements
Rank 1
Share this question
or