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

Use of QueryParam in GridProperties

Guys,

Am trying to exploit the QueryParam option in the GridProperties object to help me distinguish between four grids on one page.

I though I could set it something like:

     m_oGridModelN.QueryParam = "tab=" & n

and was expecting to get the value of tab back in my action functions e.g.

   <AcceptVerbs(HttpVerbs.Post)> _
    Public Function Index(args As PagingParams, tab As String) As ActionResult

Alas "tab" is nothing in the calls to this action, so I presume I misunderstand QueryParams.  I even added tab as an optional parameter in my routes, but it seemed to make no odds.  

How can achieve an action parameter in my actions distinguishing the grid?  
I do know in this example I can use args.ID, but can I use QuereyParams instead?

Cheers
Mark



2 Replies

MT Mark Treveil July 9, 2012 10:46 AM UTC

Guys
Apologies from this end.  The QueryParams does work sensibly, and as I thought.  I managed to introduce enough typos to break my example. Fix the cut and paste errors and it now works find.

Cheers
Mark


RD Rakesh D Syncfusion Team August 23, 2012 01:03 PM UTC


Hi  Mark Treveil,

 

Thank you for your interest in Syncfusion products.

Happy to hear that your issue is being solved.

Please let us know if you need any further assistance.

Regards,
Rakesh D


Loader.
Live Chat Icon For mobile
Up arrow icon