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

Grouping/Number of Pages

2 Answers 39 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
WILLIAM
Top achievements
Rank 1
WILLIAM asked on 05 Feb 2013, 10:09 PM
I have looked at your demo on Paging Large Data and see that when filtering you page size changes.  i.e. filter data has been removed and therefore the number of pages is less.  When we filter, the number of pages stays the same, and each page is filtered.  How do I achieve the same behavior in your demo.  I have looked at the code in your example and I do not see anything significantly different in the definition of the grid or pager.  Two differences would be 1.  When I try to add the "GroupRenderMode = Flat", I get a compile error that this property is not found.  Also, we are auto generating our columns.  Below is the xaml for our grid and pager.  Any help would be greatly appreciated.

Thanks!!
<telerik:RadGridView
    Name="uxActivityLogsGrid"
    ItemsSource="{Binding DataSource}"
    CanUserFreezeColumns="False"
    RowIndicatorVisibility="Collapsed"
    AutoGenerateColumns="False"
    Grid.Row="0"
    IsReadOnly="True"
    ShowGroupPanel="False">
    <telerik:RadContextMenu.ContextMenu>
        <telerik:RadContextMenu Name="uxActivityLogsGridContextMenu"/>
    </telerik:RadContextMenu.ContextMenu>
</telerik:RadGridView>
<telerik:RadDataPager
    Name="uxRadDataPager"
    Grid.Row="1"
    Source="{Binding Items, ElementName=uxActivityLogsGrid}"
    IsTotalItemCountFixed="True"
    DisplayMode="FirstLastPreviousNextNumeric, Text"/>

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 11 Feb 2013, 08:51 AM
Hi,

With your setup the expected beahvior is indeed the pager to react on filtering by changing the pages size.

Can you please check the following :

1. Check the output window of VisualStudio for binding expression errors
2. Check the count of RadGridView.Items after filtering .

If you still have a problem I will need to have a look at your project so see what went wrong . Please open a support ticket in order to be able to attach a project.

*Regarding the missing "FlatMode" property - it is something we have introduced lately . Please check the version of the Telerik dlls you are using and update to the latest ones if needed.

* In case you open a support ticket , please mention the ID of this thread ( 656407) so I can address it personally .

All the best,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
WILLIAM
Top achievements
Rank 1
answered on 11 Feb 2013, 03:07 PM
Thanks for your help Pavel!!

For now we have decided to remove the data pager.  Our users were finding it a bit confusing; that's probably more of our implementation vs the control itself.  I figured the FlatMode was new.  We are at least 1 version behind possible 2.

Have a good day!!!
Tags
DataPager
Asked by
WILLIAM
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
WILLIAM
Top achievements
Rank 1
Share this question
or