-
10 Jun 2010 10:40 AM #1
How do I set the background of a day in the datepicker?
How do I set the background of a day in the datepicker?
I need to use the datepicker with color coded days to reflect information is present for that day. Can someone point me to an example anywhere so I can see how to do this?
I need to I am assuming to properly display the datePicker I must
1. Have my data from an AJAX with information on days that have information.
2. Prior to rendering of the datePicker tell it what days to shade in a different color
#1 I have its #2 that I don't know what to do yet.
How do I tell the datePicker to highlight lets say days of the month 5, 6, 13?
How do I tell it to make those days have a background color of blue?
Can I disable clicking on the other days that I do not have a background color on?
-
12 Jun 2010 7:40 PM #2
still trying to get this working.
-
14 Jun 2010 8:20 AM #3
-
24 Jun 2010 6:09 AM #4
-
24 Jun 2010 6:39 AM #5
Have you been in suspended animation? What steps have you taken to TRY to work this?
I'd play with DomQuery on the Firebug command line for a minute or so...
Gets the 5th.Code:Ext.get("my-datepicker-id").child("td.x-date-active:contains(5)").domSearch the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
24 Jun 2010 6:41 AM #6
But http://www.sencha.com/deploy/dev/doc...=disabledDates
And http://www.sencha.com/deploy/dev/doc...r=disabledDays
And that sets a class, and you can write CSS.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
26 Oct 2012 10:00 AM #7
It actually gets the 5th, 15th, and 25th. But you're pointing in the right direction. Thanks!
-
26 Oct 2012 12:14 PM #8
I got it to work with code like this. It's messy, but it'll do for now.
Code:Ext.get(Ext.get('mydatepicker').query('td.x-datepicker-active[title*="15,"]')[0].id).addCls("mynewclass")
-
4 Jan 2013 1:38 PM #9
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
7 Jan 2013 7:24 AM #10
DatePickerPlus is overkill, and I don't want too many 3rd party things in my codebase. I got it to work, I should post what I did here so others might find it useful.
Similar Threads
-
DatePicker in DateField returns one day less than selected
By Carlos Ijelchuk in forum Ext GWT: DiscussionReplies: 10Last Post: 25 Feb 2013, 4:35 AM -
How: Datepicker next/prev Day Button
By insnet in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 4 Jan 2013, 1:39 PM -
extension datepicker-range (day/week/month)
By cocorossello in forum Ext 2.x: User Extensions and PluginsReplies: 16Last Post: 25 Apr 2012, 7:29 PM -
DatePicker doesnt close upon selecting (day)
By aolee in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 26 Oct 2009, 9:39 PM -
DatePicker - day of month
By cmizelle in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 20 Nov 2008, 11:44 AM


Reply With Quote