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

Kendo gird popup - not call event edit when select drop down list change

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nguyen Xuan
Top achievements
Rank 1
Nguyen Xuan asked on 26 Jul 2015, 04:57 PM

hi everyone !

i have a problem. When i use dropdownlist in popup -> i change select value of dropdownlist -> click to button edit. But kendo not call event edit. It only call edit when me change sometextbox in popup.

this is my code of part edit:

edit: function(e) {
            console.log(e);
            jQuery(e.container)
                .find("input[name='zone_id']")
                    .data("kendoAutoComplete");
            e.container.kendoWindow("title", "[[.Edit_portal.]]");
            
            var dropdown = jQuery("#zone_id").kendoDropDownList({
                dataTextField: "name",
                dataValueField: "id",
                value: e.model.zone_id.id,
               
                change: function(){
                    e.model.zone_id.name=this.text();
                    e.model.zone_id.id = this._selectedValue;
                },
                optionLabel: "Select a zone ...",
                dataSource:{
                    transport: {
                        read: {
                            dataType: "json",
                            url: "/....",
                        }
                    }
                },
            });‚Äč

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 28 Jul 2015, 02:28 PM

Hello Nguyen,

 

The Grid edit event is fired when when the user edits or creates a data item, it is not fired when Update button is clicked. Could you please elaborate a bit more on your scenario and explain what functionality you are trying to achieve? 

 

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