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
Get DatePicker to keep focus on input box
27/08/2009
13:07
Avatar
AcidRaZor
Guest
Guests

Hi,

When you click on the date picker it brings up the calendar, as soon as you select a date it immediately loses focus of the original input box, meaning you can't tab to the next available box to edit.

How can I keep focus using the datepicker to prevent losing focus of the entire row and having the user to click on it AGAIN to use the cursor/tab functions to navigate the inline editing features?

Thanks!

31/08/2009
05:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Could you be please a more specifick. In wich module is this, which version of jqGrid, which browser and etc.

It will help us if you send a link to the problem or just if this is not possible to post the code.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

01/09/2009
05:25
Avatar
AcidRaZor
Guest
Guests

Hi Tony,

This is in your Demonstration page. By going to Integrations -> UI Datepicker

Select any row. It changes into edit mode and the first text box now has focus.

By pressing Tab you cycle through the available text boxes (it goes from left to right, alternating between the text boxes making it easy to edit). This behavior is also available in the demonstration page: Row Editing - Basic Example, after clicking "Edit Row 13" and selecting the first text box.

Back to the Datepicker, once you've tabbed or clicked on the datepicker field, the calendar appears. Once you select a date it loses focus of the date textbox, preventing you from tabbing to the next available text box for edit.

This is the same in all browsers, IE6,7 and Firefox (that I've tested)

I then proceeded to implement your demonstration code into my own code and it experienced the same kind of behavior.

Thank you for your time in looking into this issue

Kind Regards

01/09/2009
14:46
Avatar
brandon
Member
Members
Forum Posts: 7
Member Since:
28/08/2009
sp_UserOfflineSmall Offline

I actually think this is a datepicker bug... not necessarily a jqGrid bug.

01/09/2009
15:52
Avatar
brandon
Member
Members
Forum Posts: 7
Member Since:
28/08/2009
sp_UserOfflineSmall Offline

Just by looking at the datepicker doc, you may be able to call focus by using onClose event.

http://jqueryui.com/demos/date.....nt-onClose

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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