Urgent: Combobox in a kendo grid not working while appending additional rows

3 posts, 0 answers
  1. Naga
    Naga avatar
    25 posts
    Member since:
    Jul 2015

    Posted 01 Oct 2016 Link to this post

    I need exactly similar grid to this : http://demos.telerik.com/kendo-ui/grid/editing-custom

    I am working on a grid with combobox for edit. i have a functionality to add row on button click. On button click i get data from database and add to grid like below.  Edit combo box template does not work from the second row. When user adds the first row, combo box works, but from the second row edit templates does not work. 

    function AddNewROwToGrid()
     var grid = $("#MyGrid").data("kendoGrid");
        var datasource = grid.dataSource;
            type: 'GET',
            contentType: 'application/json',

            url: MYURL,
            success: function (resultData) {
                if (resultData.length > 0) {
                    var gridExistingData = datasource.data();

                   var mergedData = $.merge(gridExistingData, resultData);


    Below is the configuration of Grid.


    editable: true,


                field: "MyField", title: "New Field", width: "180px",  template: "#=MyField#",
                editor: function(container, options) {
                    $('<input data-text-field="MyField" data-value-field="MyField" data-bind="value:' + options.field + '"/>').appendTo(container).kendoComboBox({
                dataSource: {
                    data: autoFillData
                dataValueField: "MyField",
                dataTextField: "MyField",
                autobind: true

    Please help. it is urgent

  2. Dimiter Topalov
    Dimiter Topalov avatar
    1067 posts

    Posted 04 Oct 2016 Link to this post

    Hello Naga,

    Please try using the dataSource.add() method for adding the new items to the dataSource:


    If the problem persists, we will need a similar isolated runnable project, where the issue is reproduced, so we can inspect it further. Thank you in advance.

    Dimiter Topalov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Naga
    Naga avatar
    25 posts
    Member since:
    Jul 2015

    Posted 10 Oct 2016 in reply to Dimiter Topalov Link to this post

    It worked great. 

    Thanks !!!

Back to Top