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

QueryParam Implementation (Essential Studio

Thread ID:





115960 Mar 5,2014 05:18 PM UTC Mar 14,2014 09:27 AM UTC ASP.NET MVC (Classic) 2
Tags: Grid
Thomas Kiehl
Asked On March 5, 2014 05:18 PM UTC

I am trying to use QueryParam in the GridPropertiesModel to pass additional information into my grids post actions for paging, sort, filtering, etc, but am finding little to no documentation on how to use it, only that it can be used for this function. (http://help.syncfusion.com/ug/asp.net%20mvc/grid/default.htm#!documents/throughgridpropertie68.htm)

How can I access the QueryParam data in my post actions? I have set up two parameters as below, but have no idea how to access them,

            gridModel.QueryParam = "account=" + account;
            gridModel.QueryParam = "openFlag=" + openFlag;

Is this the correct usage of the QueryParam property?

Thanks for your help.


Thomas Kiehl
Replied On March 6, 2014 08:10 PM UTC

Seems I was using it correctly but was accidentally overwriting the value I wanted. 

            gridModel.QueryParam = "account=" + account;
            gridModel.QueryParam += "&openFlag=" + openFlag;

Then to use it in the postback,

        public ActionResult Index(PagingParams args, string account, string openFlag)

Monday morning details will get you every time...

Abdul Matin M [Syncfusion]
Replied On March 14, 2014 09:27 AM UTC

Hi Thomas,


Thanks for your interest in Syncfusion products.


We have analyzed your requirement and created a simple sample for your requirement and used QueryParam as you have specified in your first update (without + operator in second QueryParam) and found that the value was overwriting as you have specified. Later we tried using + operator as you have used and suggested in your next update, now the issue has been resolved.


Thanks for your update. Please let us know if you need any further assistance.



Abdul Matin M


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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