Forum


07:57

18/10/2008

I have use the following code
jQuery(document).ready(function(){
jQuery("#editgrid").jqGrid({
url:'a.jsp?q=1',
datatype: "xml",
colNames:['Select','UserID','First Name', 'Last Name', 'User Created Date','User Created By','Last Modification Date','Password','Status','Group'],
colModel:[
{name:'id',index:'id', width:55,editable:false,editoptions:{readonly:true,size:10}},
{name:'uid',index:'uid', width:55,editable:true,editoptions:{size:10}},
{name:'uname',index:'uname', width:80,editable:true,editoptions:{size:25}},
{name:'lname',index:'lname', width:90,editable:true,editoptions:{size:25}},
{name:'ucreatedate',index:'ucreatedate', width:60,sortable:true, align:"right",editable:true,editoptions:{size:10}},
{name:'ucreatedby',index:'ucreatedby', width:60, align:"right",editable:true,editoptions:{size:10}},
{name:'ldate',index:'ldate', width:60,align:"right",editable:true,editoptions:{size:10}},
{name:'pass',index:'pass', width:60,align:"right",editable:true,edittype:"password",editoptions:{size:10}},
{name:'status',index:'status', width:100, sortable:false,editable: true,edittype:"select",editoptions:{value:"Active:Active;InActive:InActive"}},
{name:'group',index:'group', width:100, sortable:false,editable: true,edittype:"select",surl:"b.jsp",search:true},
],
rowNum:6,
rowList:[6,12,15],
pager: jQuery('#pagered'),
imgpath: 'themes/basic/images',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
caption:"GRID",
editurl:"edit.jsp"
});
jQuery("#editgrid").navGrid('#pagered',
{}, //options
{height:280,reloadAfterSubmit:false, url:"edit.jsp?yes=1" }, // edit options
{height:280,reloadAfterSubmit:true,url:"edit.jsp?yes=2"}, // add options
{reloadAfterSubmit:true,url:"edit.jsp?yes=3"}, // del options
{} // search options
);
b.jsp output
<select> <option value="0"> Choose One </option>
<option value="t1"> T1</option>
<option value="t2">T2</option>
</select>
it gives the javascript error option value undefined
please reply
07:52

Moderators
30/10/2007

Hello,
Currently you can use surl option onli in cell editing module and
not in form and inline edit. Also please read carefully the docs.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:32

Moderators
30/10/2007

Hello,
I apologize for this post - It is wrong Sorry.
The right is:
Currently you can use surl option only in filterGrid method.
Sorry again
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
00:18

28/07/2008

01:21

Moderators
30/10/2007

Hello,
I will try to implement this having a option to refresh the list every time or only once.
Thanks
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
05:46

28/07/2008

Tony just to add my 10c worth.
Scenario: list of products:
column1: edittype: select, list of products
column2: edittype:select, list of pricing schemes for that selected product
On selecting the first cell with list of products, the options in list of pricing schemes meeds to be adjusted automatically via an ajax call to the server that passes ni the select product as parm and get the schemes for it. I was thinking of custom building it but seems to be a catch 22 since you can do a cell edit but cannot do setColProp for the second column or some other method as the second column is active. On selectRow it also has issues with this it seems. Will be great to have surl for this kind of scenario.
Most Users Ever Online: 715
Currently Online:
42 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66