We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Grouping,Sorting and Filtering in syncfusion MVC grid with Page on Demand

Hi,
we are implementing “Page On Demand” feature in Essential Grid For Mvc4

Along With “Page on demand” we have a requirement of implementing  Grouping ,Sorting and filtering in our Grid.

We have set the “AllowGrouping” property to “true” in grid and tried to access “GroupDescriptors” property from “GridGrouping” class on post back, while grouping is performed on Grid .But Unfortunately, we are getting the “GroupDescriptors ” count as zero and “AllowGrouping ” property as false.

View:-
--------

@(Html.Syncfusion().Grid<Student>("GenericListGrid")
    .Datasource(Model)
    .EnableSorting()     /*Sorting Enabled*/
    .EnablePaging()      /*Paging Enabled*/
    .EnableGrouping()   /*Grouping Enabled*/
    .Grouping(group => group.AllowGrouping(true))
    .EnableOnDemand()
    .TotalRecordCount(Convert.ToUInt32(TempData["totalRecordCount"]))
...
...
...
);

Controller:-
-----------------

[AcceptVerbs(HttpVerbs.Post)]
 public ActionResult GridFeatures(PagingParams args, FormCollection col, StudentData model, GridGrouping group)
{
------------
------------
------------
}


So,can you please provide us a Sample application to implement Grouping,Sorting and Filtering with "Page On Demand".


1 Reply

SS Satheeskumar S Syncfusion Team July 16, 2013 09:28 AM UTC

Hi Ling Lin,

 


Thanks for your interest in Syncfusion products.

 

Query-1 Sorting and Filtering in OnDemandPaging

We suggest you to use our Online Sample and Online Documentation for EnableOnDemand. Please visit the below links.

Online Sample- http://mvc.syncfusion.com/demos/ui/grid/DataBinding/CustomBinding

Online documentation- http://help.syncfusion.com/ug/asp.net%20mvc/grid/default.htm#!documents/custombinding.htm

For your convenience we have prepared a sample. Could you please use this sample and get back to us if you have any other queries.

Sample-


Query-2 Grouping in OnDemandPaging

We are sorry for the inconvenience caused. Currently our product doesn’t support this feature [“Grouping in OnDemandPaging”].

 

Please let us know if you have any Other Concerns.

 

 

Regards,

Satheeskumar S



OnDemandFiltering_55154079.zip

Loader.
Live Chat Icon For mobile
Up arrow icon