When does the RadScheduler bind while using Data Provider?

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    6 posts
    Member since:
    Dec 2018

    Posted 24 Nov 2020 Link to this post

    I am looking into the code for our scheduler control and trying to get my head around the data provider approach to binding a scheduler.

    I can't seem to find the place where the control is bound with data, before its event handlers are called (e.g. item data bound, data bound, etc.).

    I may have overlooked it in the docs since the ones I've found are more introductory, and I couldn't much from the setup article.

    Is there a specific place in code where an instance of a scheduler control bound? E.g. scheduler.DataBind() (just for illustrative purposes, we do not use the DataSource property)

  2. Peter Milchev
    Peter Milchev avatar
    880 posts

    Posted 27 Nov 2020 Link to this post

    Hello Matthew,

    All licensed accounts have access to the source code of the suite, so this is one option to see what and when is happening exactly, as an advanced alternative to docs.

    In any binding scenario, the data is requested before the ItemDataBound and DataBound event of the control. 

    If you are using a provider for the Scheduler, the appointments are requested in the PerformSelect inherited from the DataBoundControl:

    That means, if you forcefully call the DataBind() of the control, it will call the provider and populate the appointments immediately. Otherwise, it will be bound as any other databound control bound to a source.

    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