Forum


17:15

04/01/2010

Hi Tony
i found a little bug with edittype checkbox on version 4 of jqGrid, with 3.8.2 all is ok
see my colModel :
{
name:'ativo', index:'ativo', width:80, editable:true, align:'center',
edittype:'checkbox',
editoptions:{style:'margin:5px 0; padding:0;', value:'1:0'},
formoptions:{rowpos:2, colpos:1, label:'Ativo', elmprefix:'<font class="required">* </font>'},
editrules:{required:true},
}
When in form (add or edit), if we marked the ckeckbox the post data will be "1:0" instead of "1".
Inspecting the checkbox with firebug:
<input type="checkbox" checked="" value="1:0" offval="0" style="margin: 5px 0pt; padding: 0pt;" id="ativo" name="ativo" role="checkbox" class="FormElement">
observing yours source code, i found the possible cause of the problem: (line 5075) setAttributes(elem, options)
this overwrite the value of "value" given on line 5072
possible solution is move the line 5075 up to below of line 5055
best regards
Leandro
ps: really nice work on jqGrid v4, congratulations
18:33

Moderators
30/10/2007

Hello,
Thanks. Fixed.
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:23

04/01/2010

Hi
first, thanks for fix it Tony, i am your fan 😉
johnnytuna, the latest version can be downloaded here https://github.com/tonytomov/jqGrid
Leandro
Most Users Ever Online: 715
Currently Online:
44 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