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

Can TabStrip be included in a custom Scheduler edit Template?

1 Answer 15 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Roderick Prince
Top achievements
Rank 1
Roderick Prince asked on 19 May 2014, 06:08 PM
I would like to use a TabStrip to break up the fields in a popup edit form from the Scheduler widget. Will this work?

So far my test of putting the Basic TabStrip samples <div id="forecast">...</div> into a working edit template throws a content error.

1 Answer, 1 is accepted

Sort by
0
Roderick Prince
Top achievements
Rank 1
answered on 20 May 2014, 06:13 PM
I was able to get this to work in a template by applying the tabstrip via jquery
 <div id="tabstrip">
        <ul>
            <li class="k-state-active">General</li>
            <li>Specifics</li>
            <li>Contact</li>
            <li>Location</li>
        </ul>
        <div>
            <div class="tabContent">
                <div class="k-edit-label">
                    @(Html.LabelFor(model => model.Title))
                </div>
                <div data-container-for="title" class="k-edit-field">
                    @(Html.TextBoxFor(model => model.Title, new { @class = "k-textbox wide", data_bind = "value:title" }))
                </div>
                </div>
            </div>
        </div>
        <div>
            <div class="tabContent">
                <div class="k-edit-label">
                    @(Html.LabelFor(model => model.EventType))
                </div>
                <div class="k-edit-field" id="eventTypes" />
            </div>
        </div>
    </div>



jQuery(function () {
        jQuery("#tabstrip").kendoTabStrip({
            animation: {
                open: {
                    effects: "fadeIn"
                }
            }
        });
Tags
TabStrip
Asked by
Roderick Prince
Top achievements
Rank 1
Answers by
Roderick Prince
Top achievements
Rank 1
Share this question
or