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
cell edit with single row checkbox selection
14/10/2013
16:38
Avatar
SammyD
Member
Members
Forum Posts: 9
Member Since:
26/11/2012
sp_UserOfflineSmall Offline

Hi,

Part of the my app requirements, are to have a checkbox, but, only allow single row selection (not multiple rows), along with cell edit.

I have the following properties set:

            multiselect: true,
            cellEdit: true,
            cellsubmit: 'remote',
            cellurl: '/url/to/handling/the/changed/cell/value',

To only allow single row selection, I tie into the beforeSelectRow event, and call resetSelection like:

            beforeSelectRow: function (rowid, e) {
                jQuery("#list").jqGrid('resetSelection');
                return (true);
            },

The problem I'm running into, is that when I click on a cell to edit, and then click to a different row (or click a checkbox of a different row), the previously edited cell does not restore itself.  It leaves the textbox there.

Any ideas how I can restore that edited cell, to it's previous, unedited, state?

Thanks!

14/10/2013
23:45
Avatar
SammyD
Member
Members
Forum Posts: 9
Member Since:
26/11/2012
sp_UserOfflineSmall Offline

Ignore this. Customer changed requirements on it (in a good way).  yaaay!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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