剑道刷新(DropDownList.refresh())不工作错误没有定义 [英] Kendo Refresh (DropDownList.refresh()) not working ERROR Not define

查看:176
本文介绍了剑道刷新(DropDownList.refresh())不工作错误没有定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着另一个DropDownList的后刷新下拉列表是改变,但刷新()方法是未定义的错误是Promoting.There我再数据源尝试读取,它显示了它装载,但数据仍然是相同的。有助于解决这个问题吧。

code:

  $(#DropDownList1)。改变(函数(){
   。卡斯特code = $(#DropDownList1)VAL();   $(#标题),数据(kendoDropDownList)dataSource.read()。 //显示列表加载但相同的数据present。
   $(#标题),数据(kendoDropDownList),刷新()。 //不工作});


解决方案

1 - 尝试增加缓存:假来禁用剑道DropDownList的数据源读取属性缓存:

 阅读:{
    网址:<<URL>>中
    缓存:假的
}

2 - 然后调用阅读()

  $(#DDL)的数据(kendoDropDownList)dataSource.read()。

这为我工作:)

Im trying to refresh the Drop Down List after another DropDownList is Change But the Refresh() method is Undefined Error Is Promoting.There For I Tried the Read the DataSource again and it shows it loading but the data is still the same.Help to Solve this Issue please.

Code:

$("#DropDownList1").change(function () {
   custCode = $("#DropDownList1").val();

   $("#titles").data("kendoDropDownList").dataSource.read(); //shows list Loading But Same Data Is present .
   $("#titles").data("kendoDropDownList").refresh(); //NOT Working 

});

解决方案

1- Try adding cache: false to disable the cache in Kendo DropDownList's datasource read property:

read: {
    url: <<"url">>,
    cache: false
}

2- Then call read(),

$("#ddl").data("kendoDropDownList").dataSource.read();

It worked for me :)

这篇关于剑道刷新(DropDownList.refresh())不工作错误没有定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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