Forum

July 12th, 2025
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
auto-selecting all chars in cell-edit
19/09/2010
11:35
Avatar
mchahn
Member
Members
Forum Posts: 5
Member Since:
24/08/2010
sp_UserOfflineSmall Offline

Is 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?

21/09/2010
04:03
Avatar
michaelg
Member
Members
Forum Posts: 51
Member Since:
10/04/2010
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information