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

Paging: No data returned when underlying data changes

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 07 Sep 2017, 10:51 AM

Hi,

We are having problems with paging on a grid when using server side paging.

We have a grid that contains, for example, 500 items. We have this paged to show 6 items and are currently looking at page 7.

On the back end, the data has been updated so that there is now only a single record in the dataset.

When I now do a refresh of the grid, the results are as follows:

The DataSourceRequest is as follows: Page = 7, PageSize = 6, all other properties are 0.

After performing ToDataSourceResult(request), the DataSourceResult is as follows: Data = empty, Total = 1.

Once this is returned, the grid then shows the no data template.

Is this a bug, or is there a way to fix it. I can obviously detect this, modify the request parameters and re-generate the DataSourceResult, but this smells a bit.

Thanks in advance,

Carl

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 12 Sep 2017, 05:36 AM
Hello Carl,

Apologies for the delayed response, we were аt very low capacity yesterday.

Thank you for the detailed steps.

Please have in mind that when the Grid is refreshed programmatically it will use the current data and it will not make an additional request, so I can assume that the Grid is not just refreshed when this request is made.

I tested this in our demo examples, but the data was correctly returned from the server.

If possible, please share with us fully runnable example reproducing the issue, as it may be caused by a code which we are overlooking at this moment.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Carl
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or