hi,
one of my cols in the colModel contains a edittype:”select”.
{name:'type',index:'type',width:160,align:”right”,sorttype: “select”,editable:true,formatter:'select',edittype:”select”, editoptions:{value:”1:TypeA;2:TypeB;3:TypeC”}}
To fill the grid im using an array. Everything works fine, when i set the value to “2” “TypeB” is shown.
row example: {idDB:”${time.id}”,type:”2″)
The user can modify one or more rows and than he can hit my save button. When the hits the butten i want to send the data via DWR to my bean.
var idDB = new Array();
var type = new Array();
var dataIDs = grid.getDataIDs();
for(var i = 0; i < dataIDs.length; i++){
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top