Completed
Last Updated: 16 Dec 2021 12:02 by ADMIN
Imported User
Created on: 13 Feb 2017 22:35
Category: Grid
Type: Feature Request
2
Allow rowTemplate to reference alt as a template parameter, rather than needing altRowTemplate
Right now kendo's system for alternating rows is to specify rowTemplate and altRowTemplate.  For any non-trivial row template, this makes for a big ugly DRY violation as you copypaste the entire template just to give it a different css class and leave it otherwise identical.  Any future changes to the template have to be made to both copies, and any potential template issues have to be tested on both even and odd numbered rows.

If rowTemplate received whether it's an alternate row as a template parameter, it would be easy to do common things on alternating rows without ever needing to define altRowTemplate.
0 comments