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

RadDatePicker error

2 Answers 44 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Dipankar
Top achievements
Rank 1
Dipankar asked on 23 Dec 2008, 12:31 PM
Hi

I am using RadDatePicker in my web application and I am using the following code snippet to execute database operation while selecting a date.   

<telerik:RadDatePicker runat="server"  ID="targetDatePicker" DbSelectedDate='12\2\2008' AllowEmpty="true" RadControlsDir="~/Control/RadControls/" OnDateSelected='<%#CreateCompleteDateRequest(123)%>'>

Note: Function CreateCompleteDateRequest(123) handle ajax code that updates the database.

However, it worked in OnClick() event. But we require the operation in OnDateSelected (after selecting a date from date picker).

Could you please share if you happen to know any resolution.

Thanks,
Dipankar Shakya

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Dec 2008, 01:35 PM
Hello Dipankar ,

OnDateSelected is a server-side event and you need to attach server-side event handler.

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dipankar
Top achievements
Rank 1
answered on 23 Dec 2008, 02:43 PM
Hi

I tried with following code also
<ClientEvents OnDateSelected='<%#CreateCompleteDateRequest(Container.DataItem("UserResourceID"))%>'/>
it didn't work out.
Tags
Calendar
Asked by
Dipankar
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Dipankar
Top achievements
Rank 1
Share this question
or