I have a RadDatePicker that if the user changes the date I have a confirm message to ask if the want to change the date.
If they click no I want to change the date back to its original value.
In my java script I have
var datepicker = $find("datePicker");
datepicker.set_selectedDate(args._oldDate);
when I set the selected date the function is called again and I am stuck in an Infinate loop since everytime I am setting the selected date in javascript the function is calling its self. I just want it so that if the user clicks no that the date will not change. I haven't been able to find anything on this site to fix it.
Thanks
If they click no I want to change the date back to its original value.
In my java script I have
var datepicker = $find("datePicker");
datepicker.set_selectedDate(args._oldDate);
when I set the selected date the function is called again and I am stuck in an Infinate loop since everytime I am setting the selected date in javascript the function is calling its self. I just want it so that if the user clicks no that the date will not change. I haven't been able to find anything on this site to fix it.
Thanks