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

Binding KendoUI Grid to Dynamic Column and Values

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rasika
Top achievements
Rank 1
Rasika asked on 14 Aug 2015, 01:03 PM

I did this using your this answer .......
But I try to implement update functionality like below 

 

    transport : {
                        update: {
                           
                            url: function (item) {
                               
                                return "myURL" + item.id;
                            },
                            contentType: "application/json; charset=utf-8",
                            dataType: "json",
                            type: "put"
                        }
                    }

 

But when I press update button It did not trigger  the update function..

Where should I look at ??

 

Thank you

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 19 Aug 2015, 08:56 AM

Hello Rasika,

In this example the model id fields are not set for the data items (they all have an empty id value). In this case if you try to sync the data source with the server the edited item will be considered as new item and the create operation will be called instead. This is the reason why the update operation is not called. 

Please set an integer values for the model id and then the update should be fired properly. 

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
Rasika
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or