Hi,
I am facing the following scenario using client-side data binding:
1) User "A" gets a list of items and first page is displayed.
2) User "A" clicks next page and navigates to page 2 without any issues.
3) User "B" on another workstation adds a new item.
4) User "A" clicks next page to
| <telerik:RadGrid |
| ID="RadGrid" |
| runat="server" |
| AllowPaging="true" |
| PageSize="25" |
| Width="100%" |
| Height="100%" |
| style="border:0px;outline:none" |
| > |
| <MasterTableView TableLayout="Auto" ClientDataKeyNames="Id, Icon, IsPrivate"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Icon" HeaderText="" HtmlEncode="false" HeaderStyle-Width="26px"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Name" HeaderText="Item" HtmlEncode="false" HeaderStyle-Width="100%"></telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings EnableRowHoverStyle="true"> |
| <Selecting AllowRowSelect="true" /> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" /> |
| <DataBinding Location="Grid.aspx" SelectMethod="Search" FilterParameterType="String" SortParameterType="String" ></DataBinding> |
| <ClientEvents OnDataBinding="RadGrid_DataBinding" OnRowClick="RadGrid_RowClick" OnRowDblClick="RadGrid_RowDblClick" OnDataBound="RadGrid_DataBound" /> |
| </ClientSettings> |
| <PagerStyle Mode="Slider" /> |
| </telerik:RadGrid> |
navigate to page 3, but the grid is reset to page 1.
I was able to pinpoint this to the fact that "count" changed. I can somehow understand a reason behind this, but in a multiuser environment this becomes really annoying for users.
Also, I noticed that the SelectMethod get called 3 times, one for page 3 and two times for page 0.
Is there a way to prevent this behavior.
Thanks.