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

Dynamically added control not rendering correctly

1 Answer 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 05 Feb 2014, 05:14 PM
Scenario:

Kendo control is in a partial view.

Page loads to homepage, no kendo control.

User clicks to view that has a kendo control, we pull that partial view down and inject it into the container.

Some kendo controls do not load at all (calender), and in the scheduler's case, does not render the scheduled events.

I've tried using the deferred feature then calling Kendo().DeferredScripts(), but that only results in the scheduler not rendering at all.

The grid renders fine when dynamically injected, however.

The deferred feature documentation says the default functionality is for the control's initialization scripts to fire immediately after the control is rendered. If this is the case then injecting a partial view with kendo controls within should not be a problem.

However, all of the controls that I've tested work fine when they are rendered during page load, but only the grid works as expected when injected after page load.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Feb 2014, 05:18 PM
Hello Andrew,

Since the provided information does not give enough clues for the cause of the problem, please send a runnable demo for further inspection.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Andrew
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or