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

Custom template and ownerId multiselect selected value

2 Answers 191 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 07 Sep 2015, 05:29 PM

Hi,

I can't reproduce the default multiselect widget with ownerID field in my custom edit template.

My widget doesn't use the value of the double-clicked line (timeline view).

Can you give me the code for the default template / edit function of the timeline view ?

<div data-container-for="ownerId" class="k-edit-field">
            <select id="ownerId" data-bind="value:ownerId" data-role="multiselect" data-value-field="value" data-text-field="text"></select>
        </div>

edit: function(e) {
                var ownerId = e.container.find("#ownerId").data("kendoMultiSelect");
                ownerId.dataSource.data(e.sender.resources[1].dataSource.data());
}

 

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 09 Sep 2015, 05:43 AM
Hi,

Please note that the editor "data-bind" attribute should be set correctly (it's case sensitive) in order the current group value to be bound correctly. For convenience I created small example which works as expected and you can use it as baseline:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Anthony
Top achievements
Rank 1
answered on 09 Sep 2015, 08:11 AM

Hi Vladimir,

Thank you for this example. It was very helpful.

In fact, the problem was my way to load data : I didn't use the data-source attribute.

Tags
Scheduler
Asked by
Anthony
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or