Results 1 to 6 of 6

Thread: datepicker deselect value

  1. #1
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
      0  

    Default 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
      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
      0  

    Default

    No one?

  4. #4
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
      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
    Bédoin/Redwood City
    Posts
    30,626
    Vote Rating
    53
      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)
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  6. #6
    Sencha User
    Join Date
    Jul 2009
    Location
    The Netherlands
    Posts
    196
    Vote Rating
    0
      0  

    Default

    Thanks Animal, i got it working now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •