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
Suggestion on how to select newly added row, please?
19/10/2010
20:41
Avatar
Trober
Member
Members
Forum Posts: 21
Member Since:
14/09/2010
sp_UserOfflineSmall Offline

Tony, Oleg, any suggestion on how to select newly added row via form editing?

My attempts of various kinds do not select the row.  And, such selection would need to scroll to newly added row if necessary.

Would appreciate a reply very much, documentations have given help, but not quite able to do this yet.

We use addfunc and  try afterSubmit in it, but setSelection will not work like this.

So, I try storing 'newId' in javascript variable, reloadAfterSubmit: false, then try loadComplete to setSelection using 'newId'.  But, new row is not selected.  (And, if not on screen, no scrolling to it is done either). 

Driving us nuts  right now!  Please help, sounds easy to do we are missing something.

19/10/2010
20:56
Avatar
Trober
Member
Members
Forum Posts: 21
Member Since:
14/09/2010
sp_UserOfflineSmall Offline

> But, new row is not selected.

we know why, jqgrid makes its own Id, not use our Id.

And , many more stories trying this.

21/10/2010
16:22
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Trober!

It is something difficult to answer on your question because you don't post the code. The afterSubmit is nice if you want to change something in the server response before the data will be added to the grid. On the other side from the same reason the function is not a good place for the row selection.

I would you recommend to use afterComplete instead.

Best regards
Oleg 

21/10/2010
23:48
Avatar
Trober
Member
Members
Forum Posts: 21
Member Since:
14/09/2010
sp_UserOfflineSmall Offline

Thank you to reply, Oleg!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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