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

When does the RadScheduler bind while using Data Provider?

1 Answer 47 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Veteran
Matthew asked on 25 Nov 2020, 02:19 AM

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)

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 27 Nov 2020, 03:24 PM

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.

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/.

Tags
Scheduler
Asked by
Matthew
Top achievements
Rank 1
Veteran
Answers by
Peter Milchev
Telerik team
Share this question
or