Declined
Last Updated: 15 Jul 2021 07:24 by ADMIN
Ian
Created on: 12 Jan 2017 10:44
Category: UI for ASP.NET MVC
Type: Feature Request
1
Provide error msg to MVC grid (or ToDataSourceResult) if invalid page is requested in paged data, rather than silently returning no data
If you change the dataSource to a grid (for example by changing the filter conditions) so that less data is returned, you will not be warned if the current page is no longer valid. No error is reported and no data is returned and you won't have a clue why.

Try this to replicate:

Make a paged grid plus a couple of datepickers to filter the grid data by date range. Add a button to make the new filter dates effective.

Write a new MVC controller method to populate the data, using the ToDataSourceResult extension method e.g. "return Json(obj.ToDataSourceResult(request));" to return data.

Open a sizeable dataset in the grid (many pages) and go to the last page.

Change the filter conditions to be much more restrictive. Click the button to make them effective.

Watch as the grid displays no data, the code reports no error and stepping into your controller confirms that the method is returning data.

Confusing huh? An error or warning would make this much clearer.
2 comments
ADMIN
Maria Ivanova
Posted on: 15 Jul 2021 07:24

Hi Folks,

Due to lack of provided further details, the feature request can not processed and will be closed.

Please feel free to submit a new one in case other questions arise.

Kind Regards,


Maria Veledinova
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Angel Petrov
Posted on: 04 Jun 2021 08:05

Hello Ian,

I am sorry to say but the information provided is not sufficient for us to determine what is causing this behavior. Could you please send us a sample in which it can be replicated? We need to examine the grid configuration and how the filters are applied to the datasource. Once we have a better understanding of the exact setup we should be able to quickly pin-point the root cause of the issue.

Regards,
Angel Petrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.