AdvancedForm closing will not rebind scheduler

2 posts, 0 answers
  1. Hardy
    Hardy avatar
    17 posts
    Member since:
    Mar 2012

    Posted 03 Sep 2020 Link to this post

    Hi,

    I have setup an application like the example shown to replace the edit form of the appointment.

    In AdvancedForm user can enter data and save by clicking a button.

    While that doesn't clos the AdvancedForm I set the OnClientClicked property of that button to call a js.

    The AdvancedForm will be closed and for a short time there is a busy sign. But the scheduler doesn't update the display (new appointments doesn't appear).

    When refreshing the scheduler (F5) the appointment will be displayed.

    Before I had set the OnClientClicked methode and closing the AdvancedForm manually scheduler update was ok.

    My script in AdvancedForm.ASPX is like that:

    function btnSpeichern_Clicked(sender,args)
        {
            window.close();
    }

    The script from the scheduler is

                function refreshScheduler() {
                    var ajaxManager = $find("RadAjaxManager1");
                    ajaxManager.ajaxRequest('RebindScheduler');
                }

    These function will be executed when closing the AdvancedForm. But the display is not correct (new appointment is missing or updated appointment shown as before).

    Any idea?

    Regards

    Hardy

  2. Peter Milchev
    Admin
    Peter Milchev avatar
    880 posts

    Posted 08 Sep 2020 Link to this post

    Hello Hardy,

    Generally, the RadWindow and the RadScheduler should not be related in any way. That means you need to ensure the RadWindow updated the database before closing, which then should trigger the Scheduler rebind. 

    You can even use the server-side event that updates the database from the RadWindow to register a script that will close the window and then rebind the scheduler:

    If the issue persists, you can open a private support thread where you can share your whole implementation. Once we have a better understanding of your exact scenario, we would be able to provide more accurate and specific suggestions.

    Regards,
    Peter Milchev
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top