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

ComboBox in in-line editing in Grid

1 Answer 236 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greffin
Top achievements
Rank 1
Greffin asked on 16 Mar 2012, 06:36 AM
Hi All, 

Does anyone here successfully tried in in-line editing where combobox is used? 

Thank you

1 Answer, 1 is accepted

Sort by
0
Clinton Smyth
Top achievements
Rank 1
answered on 16 Mar 2012, 05:33 PM
Not sure at what point you're running into problems.

Try adding something like this to your grid:
columns: [
    { field: "Choices", title: "My Choices", width: "150px",
        editor: function(container, options) {
              $('<input data-text-field="Name" data-value-field="Name" data-bind="value:' + options.field + '"/>').appendTo(container).kendoComboBox({
               dataSource: {
                     data: myChoicesArray
              },
              dataValueField: "Value",
              dataTextField: "Name",
              autobind: true
          });
      }
   },
   { command: ["edit", "destroy"], title: " ", width: "210px" }
],
Tags
Grid
Asked by
Greffin
Top achievements
Rank 1
Answers by
Clinton Smyth
Top achievements
Rank 1
Share this question
or