PDA

View Full Version : datepicker deselect value



nicobarten
3 Mar 2010, 6:23 AM
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?

nicobarten
3 Mar 2010, 11:50 PM
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! :((

nicobarten
4 Mar 2010, 6:08 AM
No one? (:|

nicobarten
5 Mar 2010, 7:24 AM
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?

Animal
5 Mar 2010, 7:34 AM
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



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)

nicobarten
8 Mar 2010, 5:48 AM
:) Thanks Animal, i got it working now.