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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to post the Grid's current DataManager queries to server-side manually?

DataManager queries are generated based on the Grid actions and Grid model properties. To create a custom action, collect previously posted queries to the window variable which has been done in the processQuery method of the UrlAdaptor/WebMethodAdaptor after extending them to the Custom Adaptor. Later, custom POST will be requested using any external action.

The following code example shows how to post the special action to the DataManager:

JS

 

MVC

 

ASP.NET

 

Extend the respective adaptors and collect the queries in the window variable. Later, in the button click event requesting the POST with the saved query to the CustomAction method.

 

 

 

 

 

 

 

DataManager passing for customaction



Successful Ajax post

Article ID: Published Date: Last Revised Date: Platform: Control:
8471 02/22/2018 02/22/2018 ASP.NET MVC Grid
Tags:
Did you find this information helpful?
Comments
Kalpana Aug 13, 2018

Hi,

I am using Javascript for my ui development using asp.net mvc. In post action when i am using DataManager as method argument it giving compile that DataManager not found. How to include DataManger in my action method? is there dll need to download ? i saw some where that Syncfusion.Javascript.dll would resolve but where to download that?

Thanks in Advance

Vinod.

Reply
Alan Sangeeth S [Syncfusion] Aug 13, 2018

hi Vinod,


DataManager Model class comes from "Syncfusion.Javascript" namespace in the library "Syncfusion.EJ.dll". You can download ASP.NET MVC Syncfusion product from the below link to use the library "Syncfusion.EJ"

https://www.syncfusion.com/account/downloads/aspnetmvc/16_2_0_46 


Also please refer the following link for further details

https://www.syncfusion.com/products/aspnetmvc 


You may also create your own Model class for DataManager that matches the JSON structure of data sent in Ajax post.


Regards,
Alan Sangeeth S

Reply
Add Comment
You must log in to leave a comment

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