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

Change row template for a grid and refresh

1 Answer 242 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Felipe Casanova
Top achievements
Rank 1
Felipe Casanova asked on 07 May 2012, 11:45 AM
Is it possible to do this? I have this jsfiddle....http://jsfiddle.net/6yJkM/32/ 

I'm adding an extra column in and I've tried to modify the row template and refresh the grid but I don't see the template being applied. Can anyone see a way of making that work please?

Thanks
Matt

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 09 May 2012, 12:23 PM
Hello Matt,

The problem with the RowTemplate in your example is caused by the following code snippet:
grid.rowTemplate = encTemplate2;
In order to change the RowTemplate you need to use the options of the Grid. For example: 
grid.options.rowTemplate = encTemplate2;

For convenience I updated your jsFiddle example.

 

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Felipe Casanova
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or