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

TabStrip Content template

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Malcolm
Top achievements
Rank 1
Malcolm asked on 14 Apr 2014, 01:55 PM
Is it possible to have a TabStrip widget render content using a template?
The goal here is to have something of a client card. For each card I want a tab with the Name. The content should be based on a template. I want to create an event that would allow the user to add a new item to the model and have that reflected by the tab strip[New tab, with items content rendered using the template]

Sample Data:
[{ Name: "Program 1", selectedClient: null, clients: clients},
                { Name: "Program 2", selectedClient: null, clients: clients},
                { Name: "Program 3", selectedClient: null, clients: clients}]

<div id="tabStrip" data-role="tabstrip"
                     data-bind="source: myModel"
                     data-text-field="Name"data-content-field="myTemplate">               
</div>

<script type="text/x-kendo-template" id="myTemplate">   
<div>
        <div class="window-row">
            <div class="form-label">Client:</div>
            <div id="clientDropDown" data-role="combobox"
                 data-filter="contains"
                 data-bind="value: selectedClient, source: clients"
                 data-text-field="Name"
                 data-value-field="Id"
                 data-min-length="3" />
        </div>   
</div>
</script>

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Apr 2014, 08:29 AM
Hi Malcolm,

Please avoid posting duplicate support tickets and forum threads. We have replied to the support ticket. If needed, please continue the discussion there, thank you.

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