RadDatePicker error

3 posts, 0 answers
  1. Dipankar
    Dipankar  avatar
    3 posts
    Member since:
    Dec 2008

    Posted 23 Dec 2008 Link to this post

    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. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Dec 2008 Link to this post

    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.
  3. Dipankar
    Dipankar  avatar
    3 posts
    Member since:
    Dec 2008

    Posted 23 Dec 2008 Link to this post

    Hi

    I tried with following code also
    <ClientEvents OnDateSelected='<%#CreateCompleteDateRequest(Container.DataItem("UserResourceID"))%>'/>
    it didn't work out.
Back to Top