Check the documnetation at http://www.secondpersonplural&…../index.htm look under Navigation, Custom Button. In your case you don't even need to make a custom button. There is a built In Add button, just read the documentation about navGrid, and you will find the solution.
When you sort on the grid, it posts to your server and put in sidx the sort expression, so is up to you in server side or wherver you return your data to sort your data, and send it back to jqGrid.
what's your server code? I am using .net and after login i save UserID and transfer it to client site like var UserID = 1000; then when user wants to edit a row I compare the userID with RowID.
which file must be replaced? jquery.jqGrid.min.js. i had downloaded 3.5.1 version and replaced the jquery.jqGrid.min.js but it did not fix the issue. in my page i have the following js Script:
jquery-1.3.2.min.js
jquery-ui-1.7.1.custom.min.js
grid.locale-en.js
jquery.jqGrid.min.js
thanks
Tony,
Thank you for your help anyway. For others who like me could not find easily the information, just add surl : 'severpageURL' and the server must return the outerHTML of the select control. something like:
opt1…. etc
Sorry, i didn't search enough before posting. Actually is part of the documentation under Search Form. Sorry again and discard my posts.
I did not go through your entire code, but it looks like your $(”#bedata”).click code is outsite of jQuery(document).ready(function(){ });
it should be inside of ready, or apply <input type=”BUTTON” id=”bedata” value=”Edit Selected” onclick='yourfunction();'
What's your html code for jqGrid? add alert(gr); after the
Is not
Sorry for the post. I have found my error. Actually the onclickSubmit must be added in navGrid of the subgrid and not in the main block. Now is working perfectly
where do you get the rowId? check if the right one, and it should be working. I use the same statement and is working for me.
for the edit form hight you must declare it at navGrid properties
$Grid.navGrid('#pager'
Thanks Tony. Can't wait the next release.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top