Default Route and Infinite Scrolling

Topics: Core, Customizing Orchard
Aug 14, 2013 at 6:04 AM
Hello
I want to achieve something like this:

In my Orchard module (custom) I have a page to display questions. I have several routes created for d\ifferent purposes. When the page loads I have All items loaded by default (there is an ActionResult called DisplayAll). But I want to display the first two records when the page loads for the first time i.e. 2 records per page and then I like to implement an infinite scroll feature.

Is there anything to make a specific ActionResult as "default"?

The Route currently working (as default?) is:

new RouteDescriptor
           {
               Priority = -10,
               Route = new Route(
                   "questions",
                   new RouteValueDictionary {
                       {"area","Emfluence.Intrust"},
                       {"controller","Question"},
                       {"action","DisplayAll"}
                   },
                   new RouteValueDictionary(),
                   new RouteValueDictionary {
                       {"area", "Emfluence.Intrust"}
                   },
                   new MvcRouteHandler())                                                                     
           },
Forgive me if the question was not formed correctly. I am new to Orchard and slowly trying to get into it.

Regards,
Subrata Sarkar