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_Related Related Topics sp_TopicIcon
Checkbox does not have ID and name attributes
01/11/2010
07:28
Avatar
peterloron
Member
Members
Forum Posts: 4
Member Since:
09/05/2010
sp_UserOfflineSmall Offline

I'm using jQGrid 3.1.8 with jQuery 1.4.3. I have a grid that has two columns in it that are set up as checkboxes, like so:

{name:'inv',index:'inv', width:20, sortable: false, search: true, editable: true, formatter:'checkbox', formatoptions: {disabled : false}, edittype: 'checkbox', editoptions:{size:4,value:"on:off"}}

This produces the desired checkbox element in the HTML. However, when looking at the raw HTML, the element lacks the ID and NAME attributes I expect per this page:

http://www.trirand.com/jqgridw.....s#editable

Not having the ID or a column name makes it very hard to determine what checkbox has been clicked. Here is an example of the resulting cell and checkbox HTML:

<td role="gridcell" style="" title="" aria-describedby="list2_inv"><input type="checkbox" value="off" offval="no"></td>
01/11/2010
09:26
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

In the most scenarios on need have the state of the checkboxes at the end of editing. In the case you don't need to include any event handle and use some events after the end of editing like beforeSubmit. To give you more exact recommendation I could know which from editing mode you use.

If you do need the click event handle you can use dataEvents.

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
22 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