This is a migrated thread and some comments may be shown as answers.

Kendo Grid refreshing foreign key column data for cascading dropdown list

2 Answers 307 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 11 Jul 2016, 10:16 AM

I have a column which creates a dropdown list from a foreign key value. 

I change the value in my application, the variable value changes but the drop down list does not update.

var dashboardTypeNames = [];
var menuNames = [];

columns: [              

              { field: "DashboardTypeId", values: dashboardTypeNames, title: "Dashboard Type" },
              { field: "MenuId", values: menuNames, title: "Menu" },              
        ],

On start I populate the dashboardTypeNames array with data using ajax the selected item value is then passed to another ajax which i want to populate the second dropdown I have an onchange function which gets the value of the selected item.

Anyhelp would be appreciated

2 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 11 Jul 2016, 10:27 AM
Sorry I do get the correct data back and the variable has the new data but i cant refresh the dropdown with the new data.
1
Boyan Dimitrov
Telerik team
answered on 13 Jul 2016, 07:40 AM

Hello Paul,

Please refer to the http://dojo.telerik.com/Elusi/6 example, which shows how to achieve similar scenario. 

Regards,
Boyan Dimitrov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or