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

cascade DropDownList inside Popup editmode

0 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Underdog
Top achievements
Rank 1
Underdog asked on 23 Nov 2012, 06:03 PM
Hi,

I use a cascade drop down list, and it's working fine... but now, I try to use that dropdownlist inside my popup editor, but it does not work.. Is there any way to do that?

Here is my custom popup editor:

<script id="popup_editor" type="text/x-kendo-template">
        <div class="k-edit-label">
            <label for="idState">State</label>
        </div>
        <input id="dropDownListState" name="IdState">
</script>
And this is part of my cascade dropDownList:
$("#dropDownListState" + id).kendoDropDownList({
    dataSource: {
        transport:
        {
            read:
            {
                type: "GET",
                url: function () { return RecebimentoRoutes.LoadState()},
                contentType: 'application/json; charset=utf-8'
            }
        }
    },
    dataTextField: "Text",
    dataValueField: "Value",
    change: function () {
            value = this.value();
 
            CityDataSource.filter({
                field: "Value",
                operator: "eq",
                value: parseInt(value)
                });
 
            listCity.enable();
            }
         
}).data("kendoDropDownList");

Obs: I apologise for any mistakes in my english!

Thankz!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Underdog
Top achievements
Rank 1
Share this question
or