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

Programmatically setting cascading

1 Answer 125 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Ruben
Top achievements
Rank 1
Ruben asked on 08 Nov 2015, 03:51 AM

Hello,
I am looking for a way to switch on/off cascading programmatically in DropDownList. I am sure there is better way to do it, rather than reinitialize control every time:

    if (chkDept.is(':checked')) {
        $("#ddUser").kendoDropDownList({
            cascadeFrom: "ddDepartment",
            cascadeFromField: "refId",
            dataSource: dataAllUsers,
            dataTextField: "text",
            dataValueField: "value"
        });
    }
    else {
        $("#ddUser").kendoDropDownList({
            dataSource: dataDeptUser,
            dataTextField: "text",
            dataValueField: "value"
        });
    }

Thank you.

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 11 Nov 2015, 08:15 AM
Hello Ruben,

I am afraid this is currently not supported, so re-initializing the widget is the recommended workaround.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Ruben
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or