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

How to set events programmatically and create event popup with our own fields

4 Answers 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lilan
Top achievements
Rank 2
Lilan asked on 28 Apr 2015, 07:45 AM

Hi, 

 I have kendo ui timeline view controller and i want to set events from a different datasource, which will be javascript array. i tried to set array to kendoScheduler datasource but event was not bind to the controller and when i double click on time line it gives a event popup which has unwanted fields which i cant remove. please find the sample below. 

http://dojo.telerik.com/@lilan123/UPuDE/3

 

Thanks, 

Lilan

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Apr 2015, 11:59 AM
Hi Lilian,

We are not sure what you are trying to achieve. Could you please clarify? For example what does "event was not bind to the controller" mean? Which controller are you referring to?

The demo you have attached seems to work - clicking the create button adds three events. What is the functionality you are trying to implement?


Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Lilan
Top achievements
Rank 2
answered on 30 Apr 2015, 12:08 PM

Hi Atanas, 

 Controller in a sense the component. by the way i have found the solution for that as below. 

 var scheduler = $("#schedulerTimeLine").data("kendoScheduler");
var dataSource = new kendo.data.SchedulerDataSource({
data: WorkPlanElementList
});
scheduler.setDataSource(dataSource);

 

but still i could not find a solution to customize event popup with our own fields and change events different colors when event is adding to the scheduler component. 

please check below issue.

http://www.telerik.com/forums/how-to-change-kendo-ui-scheduler-event-color-programmatically

 

Thanks 

Lilan. 

0
Accepted
Atanas Korchev
Telerik team
answered on 04 May 2015, 08:58 AM
Hi,

You should use the editable.template option in order to customize the popup editor.

You can use resources to set the color of events. Here is a live demo: http://dojo.telerik.com/@korchev/uJotO

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Lilan
Top achievements
Rank 2
answered on 05 May 2015, 03:10 AM

Hi Atanas, 

Thanks a lot for your answer and it solved my both issues. Thanks a lot

 

Regards, 

Lilan

Tags
General Discussions
Asked by
Lilan
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Lilan
Top achievements
Rank 2
Share this question
or