RadDatePicker howto stop Autopostback in some cases

3 posts, 0 answers
  1. Javier
    Javier avatar
    5 posts
    Member since:
    Oct 2006

    Posted 18 Jul 2008 Link to this post

    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. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 21 Jul 2008 Link to this post

    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
  3. Roger
    Roger avatar
    19 posts
    Member since:
    Aug 2012

    Posted 24 Apr in reply to Plamen Peshev Link to this post

    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

Back to Top