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?
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
If sorting and grouping work in the same way and is just igGrid who decides in the visual representation then igGrid should not be using two different type of querystring arguments depending on whether grouping is active or not. Because if grouping is active and the user is only sorting by a column IgGrid requests sort(<ColName>)=asc|desc instead of $orderby=<ColName> asc|descwhen grouping is set a a feature then the ordering and the grouping is requested passing the query string and that make the server code more complex to handle.
At least, I think there should be proper documentation for this. Not all the projects that use the component are MVC.