Author Topic: Infinite scrolling implementation in asp.net mvc website.  (Read 2410 times)

orlando_acevedo

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 27
    • View Profile
Infinite scrolling implementation in asp.net mvc website.
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Infinite scrolling implementation in asp.net mvc website.
« Reply #1 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.

orlando_acevedo

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Infinite scrolling implementation in asp.net mvc website.
« Reply #2 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:
  • deSerializedFilter
  • ColumnHelper
  • SortHelper

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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Infinite scrolling implementation in asp.net mvc website.
« Reply #3 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