This is a migrated thread and some comments may be shown as answers.
RAD DatePicker
1 Answer 26 Views
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 13 Aug 2012, 10:00 AM

Hi friends

I have the function to compare the two date on "Onpopupclosing",

after comparing two date I displayed the message and after closing that message,

I want to set the initial date to that datepicker not selected date.

please help me

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 15 Aug 2012, 01:06 PM
Hello Amit,

Please try the following approach and let me know about the result:
function popupClosing(sender, args) {
    if (true) { // some custom validation
        setTimeout(resetSelectedDate, 1, [sender.get_id(), sender.get_selectedDate()]);
    }
}
function resetSelectedDate(arguments) {
    $find(arguments[0]).set_selectedDate(arguments[1]);
}

That should do the trick.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
Amit
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or