[英]How to access a javascript variable in kendo-UI function?
I have an issue with kendo-UI treeview and Ajax call. 我对kendo-UI树视图和Ajax调用有问题。 I have a dropdown and on dropdown change event I want to call an ajax, by this ajax call my treeview is refreshed and all data are changed.
我有一个下拉菜单,在下拉菜单更改事件中,我想调用一个ajax,通过此ajax调用,我的树视图将刷新,所有数据都将更改。 It means on dropdown change event call an ajax and update record of treeview.
这意味着在下拉更改事件中调用ajax并更新treeview的记录。
code is :- 代码是:-
<script>
var id ;
$("drop").change()
{
id = $("drop.selected").value();
}
$("treeview").kendoUI.Treevoew()
{
//i want to use that id value in this function but i can't why?
});
</script>
I use jquery 1.10.2.Please suggest me how can i achive this functionality. 我使用的是jquery 1.10.2,请建议我如何实现此功能。
Thank you all 谢谢你们
Regards, 问候,
vinit VINIT
我相信要从剑道下拉菜单中获得价值,您必须这样做:
id = $('#mydropdown').data('kendoDropDownList').value();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.