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_TopicIcon
Handle datepicker gracefully in edit mode
23/09/2009
10:26
Avatar
tim
Guest
Guests

Hi Tony,

Sorry to hassle you.

In celledit mode the grid users' normal behaviour is to:

1. select a cell to edit ( it becomes editable)

2. make the change.

3. hit 'enter' (change becomes saved or whatever).

4. repeat for other changes if there are more to make.

When using the datepicker the users workflow becomes broken, rather they:

1. select the date cell to edit ( the calendar pops up)

2. make the change.

3. hit 'enter' (change becomes saved or whatever).

<- OOPS: No – you can not hit enter here. If the user does not have any other changes to make they end up not knowing what to do. The average user would not know to select another cell for the effect or change to 'take'.

I tried to resolve this on my own by adding the showOn: 'button' feature that allows the input box to get focus – thus allowing the user to hit 'enter'. As you are aware: I could not make it work:

http://www.trirand.com/blog/?p.....-appearing

I feel this is a significant issue; and that the community of users would greatly benefit from fixing/enhancing this.

I hope there's something you can do.

Thanks

tim

23/09/2009
10:48
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Dear tim,

It seems that you have concentrate more on what jqGrid does not have, rather than to investigate the methods and properties how to avoid some bugs in datepicker. (As I known the datepicker will be rewritten).

As of my previos comment and the coment from other user here is one gracefully solution for your problem, referring this:

http://www.trirand.com/jqgridw.....ll_editing

afterEditCell : function (id, name, value, iRow, iCol) {

$("#"+iRow+"_"+name).datepicker({/* put here your options including showOn too*/});

// or simple $(":input[name="+name+"]")....

}

Enjoy

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.

23/09/2009
17:58
Avatar
tim
Guest
Guests

> "It seems that you have concentrate more on what jqGrid does not have, rather than to investigate the methods and properties how to avoid some bugs in datepicker."

No, I am just learning both jQuery and jqGrid. I tried 50 things 50 different ways; Obviously I am not as familiar with the code as you are. This is why I put the original posting in "Help" and only after no one was able to help did I try to log as a feature request. Call me a n00b ok, but I did try to find ways to fix it without assuming it was a fault of jqGrid.

I appreciate your help as the last post did fix the problem.

Thank you.

tim

23/09/2009
19:12
Avatar
tim
Guest
Guests

I've left the working example up so that others can benefit (includes re-setting the focus).

http://www.blackstag.com/json-example

tim

25/09/2009
03:50
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello tim,

Sorry if this sound for you so - I do not mean this , but all what  I want is that people using jqGrid will need first read the documentation.

Best Regards

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
35 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

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