Forum


06:27

13/05/2009

I waht to use cell edit, I've included all the scripts but when I press click on the cell, nothing is happend.
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#list").jqGrid({
height: 440,
url:'db2xml/utilizatori.php?<?=$queryString;?>',
datatype: 'xml',
mtype: 'GET',
cellsubmit: 'remote',
cellurl: 'update.php',
colNames:['Nume','Username', 'Activ', 'Tip', 'Adresa', 'Judet', 'Telefon 1', 'Email', 'Last login', 'Actiuni'],
colModel :[
{name:'nume', index:'nume', width:130},
{name:'username', index:'username', editable:true, width:100},
{name:'flag_activ', index:'flag_activ', width:35, align:'center', editable:true, edittype:'checkbox', editoptions: {value:'y:n'}},
{name:'id_tip_utilizatori', index:'id_tip_utilizatori', width:100},
{name:'adresa', index:'adresa', width:250},
{name:'id_judete', index:'id_judete', width:100},
{name:'telefon1', index:'telefon1', width:100, align:'right'},
{name:'email1', index:'email1', width:180},
{name:'data_last_login', index:'data_last_login', width:130, align:'center'},
{width:80, sortable:false},
],
pager: jQuery('#pager'),
rowNum:20,
rowList:[10,20,30],
sortname: 'data_last_login',
sortorder: "desc",
viewrecords: true,
multiselect: true,
multiboxonly: true,
imgpath: 'jqgrid/themes/sand/images',
editurl: "update.php",
caption: '<strong>Utilizatori</strong>'
}).navGrid('#pager',{add:false,del:false,edit:false,position:"left"});
});
</script>
Hwo can help me with a sugestion? Thanks..
08:13

13/05/2009

yupiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii it's working now, i've read again and again the documentation.. 🙂
is there any posibility to can have a collumn with
editable:true, edittype:'checkbox'
to by shown like
formater:'checkbox'
and to have the posibility to can change the checkbox directly to server from just one click? this will be nice.. any ideas.. ?
10:47

Moderators
30/10/2007

Hello,
Regardng checkbox, check the news for 3.4.4 version. This is possible.
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.
Most Users Ever Online: 715
Currently Online:
76 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