[CLOSED] Date Picker show special date

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Date Picker show special date

    I want to add a date picker that can access remote data. And show some highlight for special date according to the remote data.
    And I want to add some event listener on date picker, like show detail info for the special date when mouse over on that date.
    Is it possible to do with datepicker? Can you provide some code sample?
    I find CalendarPanel may suitable with this situation, but it to complex in presentation and even in coding. I just want a simple and small calendar.
    Last edited by Daniil; Dec 06, 2013 at 3:08 AM. Reason: [CLOSED]
  2. #2
    Hi @trePjt,

    I think it might be possible with a DatePicker, but I am not 100% sure. Anyway, we have no such an example.

    Let's go further step by step. It is better to start a new forum thread for each step.

    The first one we can discuss in the current thread.
    I want to add a date picker that can access remote data.

    Please elaborate on that. What exactly do you mean by that?
    Last edited by Daniil; Dec 05, 2013 at 2:42 AM.
  3. #3
    hi Daniil,

    Actually I will prepare a Dataset/Datatable. One of the column is datetime. I want to bind this Dataset/Datatable to the datepicker then have some further effect base on the datasource.
  4. #4
    I think you can attach that data to a DatePicker via its CustomConfig.

    Or, maybe, you could bind the data to a Store. Then read from that Store and put in a DatePicker when needed.
  5. #5
    Or, maybe, you could bind the data to a Store. Then read from that Store and put in a DatePicker when needed.
    I prefer the second solution, as the dataset already bind to a gridpanel. I can reuse it.

    Can you provide some code example? Thank you!
  6. #6
    Well, I meant something like this:
    var specialDates = [];
    
    store.each(function(record) {
        specialDates.push(record.data.specialDateField);
    });
    
    datePicker.specialDates = specialDates;
    You could listen to a Store's Load event to apply this action.
    http://docs.sencha.com/extjs/4.2.1/#...ore-event-load

Similar Threads

  1. [CLOSED] Format date picker to show months
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 13, 2013, 3:52 PM
  2. Replies: 3
    Last Post: May 09, 2012, 4:28 PM
  3. Replies: 2
    Last Post: Apr 23, 2012, 12:47 PM
  4. [CLOSED] DateField - Hide trigger and date picker no-show
    By thchuong in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 12, 2011, 2:02 PM
  5. Replies: 3
    Last Post: May 06, 2010, 12:48 PM

Posting Permissions