"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Wednesday, September 11, 2013

Setting RadDatePicker Date Without Firing ValueChanged using javascript On Telerik radcontrols

 Hi *.*,

This is the first time I'm writing a post about Telerik rad controls help.


while using RadDatePicker, working with set_selectedDate(new Date()) with out firing OnDateSelected event

Over this first i remove that particular event while setting date,later i add that event back. So the functionality will not change.

My JavaScript goes below:

                var datepicker = $find("<%= rdByDatePicker.ClientID %>");
         
                var date = eventArgs.get_oldValue();
 
                datepicker.remove_dateSelected(MethodName);
                datepicker.set_selectedDate(new Date(date));
                datepicker.add_dateSelected(MethodName);


If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)

No comments: