Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5549
Custom appointmentdialog after save
posted

hi, with the following code i load my custom addappointment dialog. in the dialog i save my appointment in a sql datenbase. but how is the correct way to handle my custom add appointment dialog. and after close the screen, must i reload the whole calling page and rebuild the complete calendar with the new values from the database?

 

 

 

 function ActivityDialogOpening(oScheduleInfo, oEvent, oDialog, oActivity)
{

    oEvent.cancel = true; //Cancel default form

    var StartTime = oActivity.getStartDateTime(); //Get Activity start time to pass to custom form
    var key = oActivity.getDataKey();
   // alert("Reservierung_add.aspx?StartTime=" + StartTime + "&EventID=" + key + ",'dialogWidth:550px;', 'dialogHeight:550px;'");

    var sUrl="Reservierung_add.aspx?StartTime=" + StartTime;
    sUrl = sUrl + "&EventID=" + key;

    var sFeatures="dialogHeight:550px;dialogHeight:550px;";
   
    window.showModalDialog(sUrl, "", sFeatures);

    window.location.reload();

Parents
  • 19693
    Suggested Answer
    posted

    Hello Martin,

    Thank you for posting in our forums.

    By setting EnableSmartCallbacks property you can handle all postbacks behind the scenes, eliminating the need to refresh the entire web page

    But as you are canceling the event and are saving manually the appointment,

    I guess that you need to reload the whole calling page and rebuild the schedule with the new values from the database.

    Let me know if you need further assistance regarding this

Reply Children
No Data