Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
jqGrid v4 have a little bug on edittype = checkbox
14/04/2011
17:15
Avatar
Leandro Irgang
Brasil
Member
Members
Forum Posts: 21
Member Since:
04/01/2010
sp_UserOfflineSmall Offline

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">*&nbsp;&nbsp;</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

14/04/2011
18:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

22/04/2011
19:09
Avatar
johnnytuna
Member
Members
Forum Posts: 3
Member Since:
24/01/2011
sp_UserOfflineSmall Offline

tony said:

Hello,

Thanks. Fixed.

Tony


When can I download the corrected version?

Thanks

24/04/2011
02:23
Avatar
Leandro Irgang
Brasil
Member
Members
Forum Posts: 21
Member Since:
04/01/2010
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information