Hi,
We were previously using an earlier version of Ignite UI (version 13.2). We were able to specify the row template at grid model level in the controller . For eg.,
var model = new GridModel { AutoGenerateColumns = false, Width = "100%"};
model.RowTemplate = "<td title='${Mytitle}'>${MyTitle}<input type='hidden' name='Request' value='${Id}'></input></td>" +"<td>${Detail}</td>";
We are now trying to use the latest version of the Infragistics.Web.Mvc dll (version 16) and we dont find any property called RowTemplate in the GridModel object.The only templating option we find is in the GridColumn Level.However that means that I will have to provide a separate template for each column , which means rewriting the whole grid Model builder code.We have a lot of existing grids and I do not want to rewrite the templating of each grid row now. Is there any way I could achieve what I was able to do in the older version.
Hope my query was clear enough.
Thanks and Regards,
Sudipto
Hello UxCoder,
There is no possibility to reuse the row template functionality in the new versions where it's already not supported. Currently if you want to have template for each column, you should use column template. If I can provide you with further assistance regarding this matter, please let me know.
Regards,Tsanna
Hi Tsanna,
Thanks for the reply. I know about the templating option at the column level. But the thing is that, we already have a large number of existing grids which were having the row template(for all columns) set at one place per grid definition . So I will need a solution where I can reuse the existing template(for all columns) without having to extract each individual column template from the main template and apply it per column for each grid , as this will involve a lot of work.
Is there any possiblilty to do this or do I have to define it per column in the new version(this option would not be good as it breaks compatibility).
Hello UXCoder,
rowTemplate option has been deprecated as of the 14.1 release. The igGrid now uses column templates for individual column templating: http://www.igniteui.com/help/api/2016.1/ui.iggrid#options:columns.template The content of the template should be the html markup that goes inside the table cell, without any <td></td> tags included in front and at the end.
If I can provide you with further assistance, please let me know.