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

Dynamically changing template of a column to make it editable

3 Answers 1763 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sagar
Top achievements
Rank 1
Sagar asked on 26 Nov 2014, 01:06 AM
Hi,

We are using kendo grid in angularjs way and in one column we are showing numbers. There is a button outside the grid and we want that on click of the button, we should be able to edit the numbers, i.e. the column showing numbers, each cell in the column should now have a text box and the number in it. Can you please let me know how can I change the template of the column at run-time (on click of a button) to now have text box and the number that was bound, within the textbox?

Appreciate your quick reply.

Thanks,
Sagar

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 26 Nov 2014, 09:48 AM
Hello Sagar,


I covered the question in the support thread on the same topic. Let's continue the discussion there if further assistance is required.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ankush
Top achievements
Rank 1
answered on 13 Mar 2019, 10:47 AM

Hi Dimiter,

I have the same issue as with Sagar. Could you please share the link for this discussion in the support thread?

Thanks & Regards,

Ankush Jain

0
Alex Hajigeorgieva
Telerik team
answered on 15 Mar 2019, 07:58 AM
Hi, Ankush,

The provided answer was as follows:

------------------------------------

Editing of multiple items at once is not a supported one. Only a single item can be edited at a time and you could put it programmatically in edit mode via the editCell() method.
 
_____________________

An alternative would be to have editors in the column templates as demonstrated in this how-to article:

https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/grid-editors-in-column-templates

Before deciding if this approach is suitable for your concrete scenario, consider the grid performance article here:

https://docs.telerik.com/kendo-ui/controls/data-management/grid/performance#excessive-use-of-editors-or-widgets-in-cells

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Sagar
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Ankush
Top achievements
Rank 1
Alex Hajigeorgieva
Telerik team
Share this question
or