Kendo ui MVC禁用tabtrip动画? [英] Kendo ui MVC disable tabstrip animation?

查看:77
本文介绍了Kendo ui MVC禁用tabtrip动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

@(Html.Kendo()。TabStrip()

.Name(tabstrip)



.Events(events = >活动

。选择(onSelect)



。动画(动画=>

{

animation.Enable(false);

}))



我正在使用此代码禁用kendo tabstrip选项卡的动画,但上面的codde不适用于我禁用kendo标签式动画



我尝试过:



@(Html.Kendo()。TabStrip()

.Name(tabstrip)



。活动(events => events

。选择(onSelect)



。动画(动画=>

{

动画。启用(false);

}))

@(Html.Kendo().TabStrip()
.Name("tabstrip")

.Events(events => events
.Select("onSelect")
)
.Animation(animation =>
{
animation.Enable(false);
}))

I am using this code to disable the animation for kendo tabstrip tabs but the above codde is not working for me to disable kendo tabstrip animation

What I have tried:

@(Html.Kendo().TabStrip()
.Name("tabstrip")

.Events(events => events
.Select("onSelect")
)
.Animation(animation =>
{
animation.Enable(false);
}))

推荐答案

你可以尝试这个(js代替他们的mvc助手):



You can try this (js instead of their mvc helper):

<div id="tabstrip"></div>





和在你的js:




and in your js:


(#tabstrip)。kendoTabStrip({animation:f另外,选择:onSelect});



或者如果你还想关闭箭头键来浏览选项卡:


("#tabstrip").kendoTabStrip( {animation : false, select: onSelect });

or if you also want to turn off the arrow keys to navigate the tabs:


(#tabstrip)。kendoTabStrip({animation:false,select:onSelect,navigatable:false});
("#tabstrip").kendoTabStrip( {animation : false, select: onSelect, navigatable : false });


这篇关于Kendo ui MVC禁用tabtrip动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆