How to use relative URL in jqGrid url parameter in ASP MVC?
Posted
by Chris Herring
on Stack Overflow
See other posts from Stack Overflow
or by Chris Herring
Published on 2010-04-11T22:33:33Z
Indexed on
2010/04/11
22:43 UTC
Read the original article
Hit count: 631
jqgrid
|asp.net-mvc
I've setup a jqGrid like this
$('#gridTable').jqGrid({
url: '/GridData/',
...
Now if I navigate to a url such as "/Controller/id/" then the grid will send a GET to "/GridData/" instead of "/Controller/id/GridData/".
Can I make the GET relative so that I can pick the id up on the server side or do I have to manually pass the id as a parmater using javascript on the client?
© Stack Overflow or respective owner