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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid sorting, filtering and grouping settings?

Thread ID:

Created:

Updated:

Platform:

Replies:

100910 Sep 13,2011 06:28 PM UTC Sep 16,2011 12:57 PM UTC ASP.NET MVC (Classic) 3
loading
Tags: Grid
Greg Clouston
Asked On September 13, 2011 06:28 PM UTC

Is there anyway to get the grid's current sorting, filtering and grouping settings at the client? I'm trying to save the above mentioned values at the server level for further use later. I know the grid events pass some of these values back to the server, except grouping, in the "PagingParams" object. I would like to get access to those same values at the client level.


Eswari S [Syncfusion]
Replied On September 15, 2011 10:20 AM UTC

Hi Greg,

Thank you for using Syncfusion products.

We do have the support for client side paging ,sorting. However we can get the PagingParams settings of Grid sorting,paging, filtering and grouping settings in client side using the OnActionBegin event.

Please refer to the following code snippets:

[ASPX]

<%=Html.Syncfusion().Grid("OrdersGrid")

. . .
. . .

.ClientSideEvents(eve => {
eve.OnActionBegin("OnBegin");
})

%>

[JavaSctipt]




For your convenience, we have attached the sample and the same can be downloaded from the following link :

Sample215121747.zip

Also ,we would request you to check the following online UG link:

Client side events and methods

Please try this and let us know If you need any further assistance.

Regards,
Eswari.S




Greg Clouston
Replied On September 15, 2011 04:56 PM UTC

Thanks for the heads up. I took a look at your sample project. It looks like you are suggesting that I keep a running list of the grid settings. Is there any place in the documentation/samples that details the contents of the "args.data" object?


Eswari S [Syncfusion]
Replied On September 16, 2011 12:57 PM UTC

Hi Greg,

Thanks for your update.

Sorry for the inconvenience caused. Currently we don’t have documentation for specifying the contents of "args.data" object. Shortly we will update the UG regarding this. For the meantime, we have prepared the simple sample to demonstrate the concept of pagingparams and the same can be downloaded from the following link :

Sample-1896867573.zip

Note: If you want to run the sample in MVC3, change the configuration manager as Debug_MVC3/Release_MVC3.To briefly know about that steps please kindly refer this document link.

How to Switch between MVC2 to MVC3

Sample code to check :

[JavaScript]




Also, we would request you to check the following online sample link for Client side events :

http://mvc.syncfusion.com/sfmvcsamplebrowser/9.3.0.61/Grid_MVC/Samples/4.0/ClientSideAPI/EventTracer


Local sample location:

\\Local\Syncfusion\EssentialStudio\9.3.0.61\MVC\Grid.MVC\Samples\3.5\Views\ClientSideAPI

Please try this and let us know if would require any further assistance.

Regards,
Eswari.S




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;