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

RadGrid with EntityDataSource Paging problem

2 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 14 Oct 2014, 04:28 PM
Hi Everyone,

I ran into a problem and was wondering if anyone have a solution.  I created a Radgrid, populate the grid with an EntityDataSource with Automatic CRUD. Everything works great expect I notice a huge paging issue.  If my PageSize="5" and I have 6 records which will give me two pages.  If I go to page 2 and delete the 6th row/item the RadGrid  show the grid as empty. It doesn't go to page 1 and display the remaining 5 rows. If I hit the refresh button on the grid, still not working.  I have to reload the page before it display the 5 record in the grid.  I try putting the grid in a RadAjaxPanel, still no luck.  If I used SqlDataSource, it work fine without any problems.  Is there something that I'm missing?

Anthony

2 Answers, 1 is accepted

Sort by
0
Jochen
Top achievements
Rank 2
answered on 15 Oct 2014, 09:13 AM
Hehe nice one,

what about using OnDeleteCommand event and correcting current page manually? Not nice, I know...
0
Viktor Tachev
Telerik team
answered on 17 Oct 2014, 10:51 AM
Hi Anthony,

The behavior you describe seems like a bug that was present in an older version of the controls. The issue has been fixed and is not present in the latest release.

Try to upgrade the controls to the latest version (currently 2014.3.1002)  and the issue should disappear.

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Anthony
Top achievements
Rank 1
Answers by
Jochen
Top achievements
Rank 2
Viktor Tachev
Telerik team
Share this question
or