Calling RadScheduler1.Rebind() duplicates resources with ServerSide ResourcePopulationMode

2 posts, 0 answers
  1. Rob
    Rob avatar
    43 posts
    Member since:
    Aug 2010

    Posted 09 Oct 2013 Link to this post

    We have a RadScheduler using a web service binding with ResourcePopulationMode="ServerSide".  The GetResources method is as per the documentation:
    public static IEnumerable<ResourceData> GetResources(MySchedulerInfo schedulerInfo)
        return Controller.GetResources(schedulerInfo);
    If we call RadScheduler1.Rebind() in the code behind then GetResources is called but the resources are added to the RadScheduler rather than replacing them, with the result that duplicate resources appear.

    Is this the expected behaviour?  Are we supposed to be rebinding the scheduler differently?
  2. Plamen
    Plamen avatar
    2723 posts

    Posted 14 Oct 2013 Link to this post

    Hello Rob,

    Thank you for contacting Telerik support.

    Yes this is am expected behavior when RadScheduler is bound to Web Service binding  that is caused by the specific way the resources are loaded from the server side in such scenarios. That is why in such cases we recommend rebinding RadScheduler as in the code below:

    protected void RadButton1_Click(object sender, EventArgs e)

    Hope this will explain the issue. If you have further questions please don't hesitate to contact us again.

    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top