1. #1
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
    nicobarten is an unknown quantity at this point

      0  

    Default datepicker deselect value

    datepicker deselect value


    Hi all,

    I have a treepanel and a datepicker. Now i want to deselect the selected date in the datepicker when the user selects a node in the treepanel, and deselect the selected node when the user selects a date in the datepicker.

    How to accomplish this?

  2. #2
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
    nicobarten is an unknown quantity at this point

      0  

    Default


    I know how to deselect a selected node of a treepanel.

    I only need to know how to deselect a date in a datepicker.

    Please help!

  3. #3
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
    nicobarten is an unknown quantity at this point

      0  

    Default


    No one?

  4. #4
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
    nicobarten is an unknown quantity at this point

      0  

    Default


    Bump.

    Sorry, but i really need to do this.... i really wonder, someone never done this? Just deselecting (or is it 'unselecting'?) a date in a datepicker?

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,546
    Vote Rating
    62
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    What would unselecting mean?

    And what have you tried in the last 2 days?

    I mean a tiny little LOOK at the DOM lets you do

    Code:
    myDatePicker.el.select(".x-date-selected").removeClass("x-date-selected");
    To remove the selected class..... But then we have no idea what you actually want (but are failing to work towards doing)

  6. #6
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
    nicobarten is an unknown quantity at this point

      0  

    Default


    Thanks Animal, i got it working now.

Thread Participants: 1