Morning folks!
What I'm trying to do is...when I change the item of the dropdownlist, I'll need to REload the TreeView with the selectedValue of the dropDownList.
In my case, as I'm a new kendoui user, I'm not going on the right track, for sure.
Any ideas?
Here's my JS dumb script...hope you can help me!
What I'm trying to do is...when I change the item of the dropdownlist, I'll need to REload the TreeView with the selectedValue of the dropDownList.
In my case, as I'm a new kendoui user, I'm not going on the right track, for sure.
Any ideas?
Here's my JS dumb script...hope you can help me!
<script type="text/javascript"> function onChange(e) { $.ajax({ url: "/Nav/MontaMenu/", dataType: "json", cache: false, type: 'GET', data: { nomePastaSelecionada: this.text(), caminhoPastaSelecionada: this.value() }, success: function (result) { $('#treeview').kendoTreeView(); var tvProjeto = $('#treeview').getKendoTreeView(); tvProjeto.destroy(); var dataSource = new kendo.data.DataSource({ data: result }); dataSource.fetch(function () { tvProjeto.setDataSource({ data: dataSource }); }); } }); }</script>