Forum
15:56
15/11/2008
Hello
i have a grid with editable rows that was working just fine, when i added the seach toolbar the fields that are select type in the editable row dont appear and i have this error
” options.value is undefined
horas = "00:00;01:01;02:02;03:03;04:04;05:05;06:06;07:07;08:08;09:09;10:10;11:11;12:12;13:13;14:14;15:15;16:16;17:17;18:18;19:19;20:20;21:21;22:22;23:23";
url:'server.php',
datatype: “json”,
colNames:['Id','IdF','Funcionario','Seccao','Funcao','Dia','HH Ent','MM Ent','HH Sai','MM Sai','Total','Refeicao'],
colModel:[
{name:'id',index:'id', width:90,hidden:true},
{name:'idF',index:'id_funcionario', width:30},
{name:'funcionario',index:'funcionario', width:140},
{name:'seccao',index:'seccao_desc', width:120},
{name:'funcao',index:'funcao_desc', width:90},
{name:'data',index:'data', width:75,editable:true,sorttype:'date', datefmt:'Y-m-d'},
{name:'ent_horas',index:'ent_horas', width:55,editable:true,edittype:'select',align:"center",
editoptions: {value:horas}},
{name:'ent_min',index:'ent_min', width:57,editable:true,edittype:'select',align:"center",
editoptions: {value:minutos}},
{name:'sai_horas',index:'sai_horas', width:55,editable:true,edittype:'select',align:"center",
editoptions: {value:horas}},
{name:'sai_min',index:'sai_min', width:57,editable:true,edittype:'select',align:"center",
editoptions: {value:minutos}},
{name:'total',index:'total', width:48,editable:true,align:"center"},
{name:'extra',index:'extra', width:58,editable:true,align:"center"},
],
rowNum:50,
rowList:[50,150,300],
imgpath: 'themes/sand/images',
pager: jQuery('#prowed3'),
sortname: 'data',
viewrecords: true,
sortorder: “asc”,
onSelectRow: function(id){
if(id && id!==lastsel){
jQuery('#edit_hours').restoreRow(lastsel);
jQuery('#edit_hours').editRow(id,true);
lastsel=id;
}
},
height: 430,
width: 750,
editurl: “edit.php,
caption: “Editar Horas”
}).navGrid(”#prowed3″,{edit:false,add:false,del:false});
jQuery(”#t_rowed3″).height(25).hide().filterGrid(”edit_hours”,{gridModel:true,gridToolbar:true});
jQuery(”#edit_hours”).navGrid('#prowed3',{edit:false,add:false,del:false,search:false,refresh:false})
.navButtonAdd(”#prowed3″,{caption:”Search”,
title:”Toggle Search”,buttonimg:'themes/sand/images/find.gif',
onClickButton:function(){
if(jQuery(”#t_rowed3″).css(”display”)==”none”) {
jQuery(”#t_rowed3″).css(”display”,”");
} else {
jQuery(”#t_rowed3″).css(”display”,”none”); } } });
Thanks in advaced
Snip3r
03:21
Moderators
30/10/2007
Hello,
Check to see if you heve unneeded ; at end of string -i.e
minutos = “00:00;15:15;30:30;45:45; <-----″;
If this is set the select will not work.
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:
47 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