Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
Remote grouping with Web Forms
posted

I'm developing a Web Form application (no MVC). At the moment I'm struggling to understand how igGrid does remote grouping. I've notice that when grouping is not active then sorting is done with the query string

$orderby=<ColName> asc|desc

when grouping is set a a feature then the ordering and the grouping is requested passing the query string

sort(<ColName>)=asc|desc

But nowhere in the documentation I've found what show be the JsonP format of the answer so that the igGrid can group the data.Could you please provide it to me?

Parents
No Data
Reply
  • 24671
    posted

    Hi,

    The grid has ASP.NET MVC server-side wrappers , but we do not provide any WebForms code which implements sorting / grouping / paging / filtering on the server. 

    If you'd like to use the igGrid in a WebForms application you would have to intercept the request and provide the JSON response in the correct format, yes.

    $orderby is the default OData keyword, which is used if you haven't set sortUrlKey.

    Grouping is essentially the same as sorting. The actual grouping happens on the client, the server-side just sorts the data. The response is no different in that sense. 

    Therefore, you can set sortUrlKey, as described here:

    http://help.infragistics.com/Help/Doc/jQuery/2011.2/CLR4.0/HTML/igGrid_Sorting.html

    And handle sorting on the server. The groupBy will be taken care of on the client.

    Hope it helps. Thanks,

    Angel 

Children