Example 43 - colspan/rowspan - Employees Timesheets

Example 43: colspan/rowspan - Employees Timesheets code

{#if showSubTitle}

NOTES: rowspan is an opt-in feature, because of its small perf hit (it needs to loop through all row metadatas to map all rowspan), and requires the enableCellRowSpan grid option to be enabled to work properly. The colspan/rowspan are both using DataView item metadata and are both based on row indexes and will not keep the row in sync with the data. It is really up to you the user to update the metadata logic of how and where the cells should span when a side effect kicks in. (i.e: Filtering/Sorting/Paging/Column Reorder... will not change/update the spanning in the grid by itself and that is why they these features are all disabled in this example). Also, column/row freezing (pinning) are also not supported, or at least not recommended unless you know exactly what you're doing (like in this demo here because we know our pinning doesn't intersect)! Any freezing column/row that could intersect with a colspan/rowspan will cause problems.

{/if}