This is a migrated thread and some comments may be shown as answers.

RadDatePicker howto stop Autopostback in some cases

2 Answers 193 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 2
Javier asked on 18 Jul 2008, 03:42 PM
I have a Grid with a lot of rows and a different DateTime value on each row. When I mouse hover the rows I set the selectedDate of an outside RadDatePicker client-side using the javascript set_selectedDate().
When the user opens the calendar popup and selects a different date a server side event is fired and the grid is updated with AJAX.

The problem is that the client javasript set_seletedDate method also fires the server side event because of the Autopostback, but I want the server event fired only when the date is changed using the popup.
If I set Autopostback to False then the server event never gets fired..

How can I cancel the server postback after I call set_selectedDate() and make the popup selecteddatechanged server event keep working?


2 Answers, 1 is accepted

Sort by
0
Missing User
answered on 21 Jul 2008, 01:29 PM
Hello Javier,

Please find attached a sample web application that demonstrates the needed approach.

Sincerely yours,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roger
Top achievements
Rank 1
Veteran
answered on 24 Apr 2017, 04:01 PM

It is annoying not providing the solution in short form with sample code in these forum posts.

Having to download Visual Studio solutions is awkward.

Best regards,

Roger

Tags
Calendar
Asked by
Javier
Top achievements
Rank 2
Answers by
Missing User
Roger
Top achievements
Rank 1
Veteran
Share this question
or