-
6 Nov 2006 12:30 PM #1
Date Picker
Date Picker
I'd like to use your date picker b/c it seems much more lightweight than YUI's calendar. Can you use that outside of the Grid? If so, how?
thanks.
-
6 Nov 2006 4:44 PM #2
There are no examples of using it outside of the grid yet. When the forms stuff is finished there will be some examples of using it.
-
9 Dec 2006 5:15 AM #3
Any Idea when this is going to happen?
ta
Pomata
-
19 Apr 2007 7:33 PM #4
I have already used it outside of a form/grid like this...
datePicker = new Ext.DatePicker();
datePicker.render(Ext.get('calendar'));
-
3 May 2007 3:14 AM #5
I got this far also, but i am finding it difficult to find a 'clean' way to have the DatePicker popup above the current elements.
I suspect i need to create a layer dynamically, and then place it inside that particular layer.
Would that be correct?
-
3 May 2007 3:27 AM #6
Here is what i hacked together for this:
This pops up the date picker and allows us to now display near the form in question.Code:<div id="datepicker" style="z-index: 9999; position:absolute;"></div> // calls this function logic: var divTag = Ext.get('datepicker'); var anchor = Ext.get( 'anchorDiv' ); divTag.setX( anchor.getX() ); divTag.setY( anchor.getY() ); datepicker.render( divTag ); datepicker.show();
-
3 May 2007 3:38 AM #7
Okay now my next problem is closing/cancelling the DatePicker; how can i do this cleanly?
The user has to click a date to close it down, otherwise it stays up forever!
Thoughts?
-
8 Oct 2007 11:47 PM #8
-
5 Mar 2008 3:00 AM #9
Sorry to bump this thread. I am also facing the same issue of datepicker staying up forever and need a solution to close it down either with a button (on picker itself) or when the user clicks away.
-
8 Mar 2008 8:35 PM #10
I did it like this.. but it's not the best solution i'm assuming.
I did it like this.. but it's not the best solution i'm assuming.
Code:var datepickeractive = 0; function selectDate(){ var datepicker = new Ext.DatePicker(); if(datepickeractive == 0){ datepicker.render('dateholder'); datepickeractive=1; } else { Ext.get('dateholder').dom.innerHTML=''; datepickeractive=0; } }
Similar Threads
-
Time Picker Combobox?
By San in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 27 Feb 2007, 2:06 PM -
DateEditor date picker and disabledDates
By jamaljohnson in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 25 Jan 2007, 6:45 PM -
date picker
By pomata in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 10 Dec 2006, 12:11 PM -
Color picker editor for yui-ext
By rodiniz in forum Community DiscussionReplies: 10Last Post: 25 Nov 2006, 8:22 PM -
Remove Day of the Week from Date Picker
By dmayer in forum Ext 1.x: Help & DiscussionReplies: 8Last Post: 5 Oct 2006, 1:42 PM


Reply With Quote