ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: orlando_acevedo on October 23, 2016, 11:02:01 am

Title: Infinite scrolling implementation in asp.net mvc website.
Post by: orlando_acevedo on October 23, 2016, 11:02:01 am
Hello all,

I want to implement infinite scrolling in an ASP.net MVC website.
As far as I understand, the grid sends a request, including the filter and page number to the data provider.

Is there a template for that controller action (the data provider), or specifications on how to build it?

Thank you.
Title: Re: Infinite scrolling implementation in asp.net mvc website.
Post by: paramvir on October 24, 2016, 12:47:13 pm
ASP.NET (MVC) controller code for that example has been added to the example under ASP.NET (MVC) tab.

Please note that DLinqFilterHelper is not tested for every filter condition.
Title: Re: Infinite scrolling implementation in asp.net mvc website.
Post by: orlando_acevedo on October 26, 2016, 09:52:20 am
Thank you for adding the MVC code. I was able to adapt it to my site, but I'm getting errors now. Both (DLinqFilterHelper and the controller code) use ParamQuery.Areas.pro.Models; and ParamQuery.Areas.pro.Helpers.
I'm assuming I don't need the Models, but there are 3 items that are not found, which I think are in the Helpers namespace:

Please post the code for those, including any extra code that would be needed, or let me know where I can find it.


Thank you again.
Title: Re: Infinite scrolling implementation in asp.net mvc website.
Post by: paramvir on October 26, 2016, 09:26:34 pm
These helpers are defined in remote filtering and remote sorting demos in ASP.NET(MVC) tabs.

http://paramquery.com/pro/demos/filter_header

http://paramquery.com/pro/demos/sorting_remote