Question

I have an issue with kendo-UI treeview and Ajax call. 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. It means on dropdown change event call an ajax and update record of 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.

Thank you all

Regards,

vinit

Was it helpful?

Solution

I believe to get the value from a Kendo drop down, you have to do this:

id = $('#mydropdown').data('kendoDropDownList').value();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top