This is a migrated thread and some comments may be shown as answers.

RadScheduler External Edit in RadDock Order of Events

3 Answers 60 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gareth
Top achievements
Rank 1
Gareth asked on 19 Apr 2013, 10:10 AM
I'm using External Edit in RadDock BUT I'm using EntityDataSources rather than SessionDataSources. On editing an appointment with my custom form (in the RadDock) the database is correctly updated but the RadScheduler is redrawn before the data update so it appears not to update on the page.
  • I've checked with Firebug and it definitely does make the ajax call and redraw with the pre-edit data, thus the problem is not that the AjaxManager fails to call (which was my first thought).
  • If I click on the today link (or in any way cause the RadScheduler to redraw again) all is well, the data is correctly displayed.
  • Immediately after editing the appointment the context menu (on the edited appointment only) fails, i.e. no longer comes up with the custom (EDIT and DELETE) but right click shows the browser's context menu. (Hovering on the appointment at this point gives a javascript error that l is null in this)
    var k=(l._allowDelete!=null)?l.get_allowDelete():this.get_allowDelete();
    Again a reload fixes this.
  • Drag and drop works
  • Delete works
  • Completely removing the RadAjaxManager (so the whole page reloads) does not change the behavior, still getting the pre-edit data back and the context menu problem.

Any Ideas?

3 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 24 Apr 2013, 10:01 AM
Hello,

Thank you for contacting Telerik Support.

Your observations are absolutely correct and you can avoid that unusual behavior simply by rebinding the RadScheduler control after you have finished updating specific appointment. Please add the following line of code at the bottom of the SubmitButton_Click event handler in the code behind:
//code behind
protected void SubmitButton_Click(object sender, EventArgs e)
    {
       ......
 
        RadDock1.Closed = true;
        RadScheduler1.Rebind();
    }

Hope that this will be helpful.

Regards,
Boyan Dimitrov
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.
0
Gareth
Top achievements
Rank 1
answered on 24 Apr 2013, 11:24 AM
Thanks Boyan,

I have recoded the offending scheduler to use SqlDataSources but I will revert to the EntityDataSource now. For future reference, does this apply only to EntityDataSource or are there others for which Rebind() is also required?

Gareth.
0
Boyan Dimitrov
Telerik team
answered on 29 Apr 2013, 08:41 AM
Hello Gareth,

Thank you for getting back to us.

It seems that using the RadScheduler Rebind method is required only when using the EntityDataSource.

Thank you for understanding.

Kind regards,
Boyan Dimitrov
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.
Tags
Scheduler
Asked by
Gareth
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Gareth
Top achievements
Rank 1
Share this question
or