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.
Unfortunately, activation email could not send to your email. Please try again.

Use of QueryParam in GridProperties

Thread ID:

Created:

Updated:

Platform:

Replies:

104284 Jul 7,2012 09:57 AM Aug 23,2012 09:03 AM ASP.NET MVC (Classic) 2
loading
Tags: Grid
Mark Treveil
Asked On July 7, 2012 09:57 AM

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



Mark Treveil
Replied On July 9, 2012 06:46 AM

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

Rakesh D [Syncfusion]
Replied On August 23, 2012 09:03 AM


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


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.

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.

;