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
daterangepicker integration with jqGrid - Error
12/08/2009
13:49
Avatar
krisreddy
Member
Members
Forum Posts: 37
Member Since:
24/02/2009
sp_UserOfflineSmall Offline

Hi I am trying to use daterangepicker by filament group

http://www.filamentgroup.com/l.....framework/

I am getting a 'too much recursion error' when I trying to attached to onInitializeForm event in the navgrid in edit options

onInitializeForm : function(form_id) {jQuery("#dtmOrderDate",form_id).daterangepicker({dateFormat:'mm/dd/yyyy',showOn: 'focus'});},

Please help

Thanks

Kris

13/08/2009
02:35
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Where you put this code?

Try to use dataInit event in editoptions.

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.

13/08/2009
13:42
Avatar
krisreddy
Guest
Guests

Hi tony,

I tried using the daterangepicker with dataInt - Nothing happens, cell gets selected and grid freezes. I don't know if it is compatible with jqGrid.

so I swithced to datepicker jquery ui - although I have one problem. my dateformat is set to "mm/dd/yyyy". When there is date in the cell already (08/20/2009) and click on the cell, date picker comes up and I select a date for example the 8/21/2009 - then it inputs the following in the cell 08/21/20092009

Is this a bug or I am doing something wrong.

{
                                    name:'dtmExpectedDate',
                                    index:'dtmExpectedDate',
                                    width:10,
                                    align:"left",
                                    editable:true,
                                    edittype:'text',
                                    sorttype:'date',
                                    datefmt:'mm/dd/yyyy',
                                    search:false,
                                    editoptions:{
                                            dataInit:function(elem){
                                                $(elem).datepicker({dateFormat:"mm/dd/yyyy"});
                                                }
                                            },
                                    editrules:{date:true,required:true}

                                }

15/08/2009
02:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please consult datepicker forum and documentation. This is not a jqGrid problem, but a datepicker.

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.

21/08/2009
13:45
Avatar
Krisreddy
Guest
Guests

Found the problem. I need to set the dateFormat:"mm/dd/yy" and everything works!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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