Forum
Topic RSS
11:35
24/08/2010
OfflineIs there a way to have a cell automatically select all the characters when it enters edit mode? Quite often the user wants to totally replace the contents instead of changing a few characters. When tabbing and typing rapidly, it is a real pain to have to hit ctrl-A or to backspace a zillion times. Is there an option for this or do I need to change the jqGrid source code?
Hi there,
I've put this functionality in my grid by selecting the input element by its id (if you use firebug you will see that the ID's follow a naming convention), and then calling the javascript focus() method. This is done in the event where I put the row into edit mode. That way no changes to the jqgrid source code was needed.
I dont have my source code atm so can't show u the code, but i hope that helps
Cheers,
Michael
Most Users Ever Online: 994
Currently Online:
23 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
Log In
Home