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

[Solved] Paging issue when changing datasource

3 Answers 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hung
Top achievements
Rank 1
Hung asked on 22 May 2008, 04:29 PM

Hi!

I have a radgrid is configured as following:
<

telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" Skin="Vista">
<MasterTableView DataKeyNames="SchematicDescriptionId"
AllowFilteringByColumn="true" AllowSorting="True" AllowCustomPaging="true" AllowPaging="True" PagerStyle-Mode="NextPrevAndNumeric" PageSize="10" CommandItemDisplay="Top" EditMode="EditForms" AllowAutomaticInserts="true" CommandItemSettings-AddNewRecordText="New Description" CommandItemSettings-RefreshText=""><Columns>.....</Columns></MasterTableView></telerik:RadGrid>

I have also a dropdownlist. Everytime I select an item in this dropdownlist, datasource of RadGrid1 will be changed. The issue is datasource comes from the 1st item of dropdownlist has 18 rows (for example) and datasource's 2nd item if dropdownlist has only 1 row. But I don't know why Paging section alway show "Displaying page 1 of 2, items 1 to 10 of 18." while the 2nd datasource just has 1 row ??? 

Please help me
Thank
Hung

3 Answers, 1 is accepted

Sort by
0
Hung
Top achievements
Rank 1
answered on 22 May 2008, 06:27 PM
By the way, Data source I 'm using is a list. Still waiting the answer!
0
Accepted
Shinu
Top achievements
Rank 2
answered on 23 May 2008, 05:33 AM
Hi,

Try setting EnableLinqExpressions to false . Go through the following forum link which discuss a similar scenario.
Page count inaccurate after new search

Thanks
Shinu.
0
Hung
Top achievements
Rank 1
answered on 23 May 2008, 09:32 AM
That's it. Thank you so much, Shinu.
Tags
Grid
Asked by
Hung
Top achievements
Rank 1
Answers by
Hung
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or