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

Kendo Grid with dropdown and textbox

1 Answer 2649 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Srini
Top achievements
Rank 1
Srini asked on 10 Nov 2017, 10:29 AM
I am using kendo grid. i want to add textbox to multiple rows in kendo grid without clicking any edit button and i am using java spring mvc, so i am not using .net and i am attaching a screen shot here i want to do like this using kendo grid ui.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 10 Nov 2017, 11:16 AM
Hi Srini,

Placing editors in the template of a column is not recommended, because if the editor is bound correctly to the dataItem, after each change in the editor, the entire Grid will be rendered again. Nevertheless, you could refer to the following HowTo example for the Kendo UI Grid, which is applicable with the wrappers as well:
Another option would be to manually set the value from the datItem to the editors (again within the dataBound event, but without the kendo.bind) and within the change event of the editor, update the underlying value of the dataItem:
function dropDownChangeEventHandler(e){
    ////
   dataItem["yourFieldName"] = e.sender.value();
   dataItem.dirty = true;
}

Once again, we do not recommend this approach and I would suggest that you use the Batch editing instead:

Best Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Srini
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or