Home › Forums › Guriddo jqGrid JS › Help › How to display data in grid cell for a multiselect combobox?
In my index.html file:
jQuery(document).ready(function(){
Solved:
My question now is I am trying to pass the unique identifier to the categorySelect.php page.
Hello,
dataUrl property can be a function. To this function we pass the id and value
try this
colModel : [
..
{
name:'name',…
dataUrl : function(rowid, value, name) { return 'myscript.php?id='+rowid; }
},
…
]
Regards
When I add the function into the dataUrl, I am getting a 404 – File or directory not found.
The first parameter in this case is calculated incorrect – I mean there is a bug.
Try with this code.
dataUrl
Can you please make a demo in jsfiddle or post your full source code.?
<html xmlns="http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<!– –>
This code is wrong:
I changed the code to what you specified and I am still getting a 404 result showing URL as: GET /admin/function()%20%7Bvar%20srow%20=%20jQuery(%22%23list%22).jqGrid('getGridP….
Not sure what you do.
This is exactley your code. The only diffrenece is that I use the source array data.
See it in action here
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS