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
tableToGrid help
05/03/2009
13:19
Avatar
jhaag
New Member
Members
Forum Posts: 1
Member Since:
05/03/2009
sp_UserOfflineSmall Offline

I am new to jqGrid and am very impressed.   On of my pages needs to have an existing table converted to a grid and the tableToGrid function seems aptly suited for this but I am having some issues.

1.  When using tableToGrid, my left most column gets a checkbox column added.  While nice, I dont need it.  How do i get rid of it? *** UPDATE *** I had a column with a checkbox, removing that checkbox also removed the left column with checkboxes. why?

2.  Attempting to wire up the ondblClickRow event doenst seem to work, however the same code for onSelectRow does work.  (note: I do call .trigger)

thegrid.setGridParam({ ondblClickRow: function(id) { alert(id); } });
//thegrid.setGridParam({ onSelectRow: function(id) { alert(id); } });

thegrid.trigger(”reloadGrid”);

Any suggestions?

24/03/2009
06:36
Avatar
rtordable
Member
Members
Forum Posts: 15
Member Since:
24/02/2009
sp_UserOfflineSmall Offline

Hello jhagg,

add and empty column in the left most.

After the tableToGrid("#id_table") add the following code:

jQuery("#id_table").setGridParam({multiselect:false}).hideCol('cb');

Regards.

Ramón

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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