Forum


01:44

Moderators
30/10/2007

Do not understand what you try to do? Please describe again.
If possible see the examples on how to construct multiselect.
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.
02:00

27/08/2008

I write code:
jQuery(document).ready(function()
{ jQuery(”#list”).jqGrid({
url:'../exec/loader.php?nd='+new Date().getTime(),
datatype: 'xml',
//mtype: 'GET',
colNames:['ID','Name', 'Type','Reg','Iban','Bank','J. addr.','F. addr.','Phone','fax','E-Mail','D.d.','status'],
colModel:[
{name:'id', index:'id', width:50,sortable:true,sorttype:'int'},
{name:'name', index:'name', width:90,sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'type', index:'type', width:80, align:'right',sortable:true,sorttype:'text',editable: true,edittype:"select",editoptions:{size:50,value:"1:SIA;2:A/S;3:I/K;4:Z/S"}},
{name:'reg', index:'reg', width:80, align:'right',sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'iban', index:'iabn', width:80, align:'right',sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'bank', index:'bank', width:80, align:'right',sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'jaddr', index:'jaddr', width:80, align:'right',sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'faddr', index:'faddr', width:80, align:'right',sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'phone', index:'phone', width:80, align:'right',sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'fax', index:'fax', width:150, sortable:false,editable:true,editoptions:{size:70}},
{name:'mail', index:'mail', width:150, sortable:true,sorttype:'text',editable:true,editoptions:{size:70}},
{name:'days', index:'days', width:150, sortable:false,editable:true,editoptions:{size:70,value:"1:Pirmdiena;2:Otrdiena;3:Tresdiena;4:Ceturdiena;5:Piektdiena;6:Sestdiena;7:Svetdiena"}},
{name:'status', index:'status', width:150, sortable:true,sorttype:'text',editable: true,edittype:"select",editoptions:{value:"0:On;1:Off"}}],
pager: jQuery('#pager'),
rowNum:10,
rowList:[10,20,30],
sortname: 'id',
sortorder: “desc”,
width:870,
height:400,
viewrecords: true,
imgpath: 'themes/sand/images',
caption: 'Piegadataju saraksts',
editurl:”../exec/editor.php”
}).navGrid(”#pager”,{edit:true,add:true,del:true},
{height:280,width:400,reloadAfterSubmit:true}, // edit options
{height:280,width:400,reloadAfterSubmit:true}, // add options
{reloadAfterSubmit:false}, // del options
{width:500} // search options
);
});
</script>
in column “days” Ihave Array() and I need set 7 checkboxes or one “select multiple” in each row of grid. Can I get it ?
02:11

Moderators
30/10/2007

Hi,
edittype should be set here. The values that you have are not for
checkbox, but for select box. Also check 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.
03:32

Moderators
30/10/2007

Please explain, do you want to have checkbox when editing
the coulmn or do you want to have checkboxes when
you read data from server or local array.
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.
03:54

27/08/2008

Received data from server:
echo “<cell>”. $row['name'].”</cell>”;
echo “<cell>”. $t[$ftype].”</cell>”;
echo “<cell>”. $row['reg'].”</cell>”;
echo “<cell>”. $row['iban'].”</cell>”;
echo “<cell>”. $row['bank'].”</cell>”;
echo “<cell>”. $row['jaddr'].”</cell>”;
echo “<cell>”. $row['faddr'].”</cell>”;
echo “<cell>”. $row['phone'].”</cell>”;
echo “<cell>”. $row['fax'].”</cell>”;
echo “<cell>”. $row['mail'].”</cell>”;
echo “<cell>”. $DD.”</cell>”; // DAYS of week
echo “<cell>”. $st[$row['status']].”</cell>”;
$DD is array like this:
$DD = 0,0,1,0,1,0,0; I need set checkboxes for edit this value!
04:21

Moderators
30/10/2007

You can set only ONE checkbox per column.
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:
71 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