Identifying when a user saves without changes

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    14 posts
    Member since:
    Nov 2010

    Posted 15 Oct 2012 Link to this post

    When a user modifies a schedule is there a way to detect on the server if the appointment and the modified appointment are the same, in other words, there are no changes? Or client side is there a way to simply call the cancel submit when save is clicked with no changes?

    I cannot find any way to do a compare on the appointment and the modified appointment that is built in and would cover all information passed from the form.

    Thanks!
  2. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 18 Oct 2012 Link to this post

    Hello Andrew,

     
    There is no such built in functionality in RadScheduler but one possible solution if to get all the information about the appointment in the OnClientFormCreated event save it in a some hidden field's value and then check if it is the same on a click of the button.

    One the server side this can be easily made in the AppointmentUpdate event.

    Hope this will be helpful.

    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top