Forum
20:41
14/09/2010
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.
16:22
10/08/2009
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
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66