Unplanned
Last Updated: 11 Nov 2021 15:56 by ADMIN
David
Created on: 30 Jan 2015 18:46
Category: Grid
Type: Feature Request
1
Grid: Add a post-visibility-toggle event counterpart to detailExpand.
When a Kendo Grid is given a detailTemplate, the "master" rows can generate detail rows.  When this first happens, the detail row is visible to both the detailInit and detailExpand event handlers:

e.dataRow.is(":hidden") is false

However, during subsequent expansions and collapses, the row is no longer visible when detailExpand is entered:

e.dataRow.is(":hidden") is true

The problem is that dynamic content inside the detail may have responded to a change elsewhere, and redrawn while invisible--producing an ugly mess of content when the detail row becomes visible again.  Having an event that occurs after the row is made visible by the expansion would allow me an easy place to instruct the detail row contents to redraw/refresh/resize.

At this time, the workaround is to use setTimeout inside the detailExpand handler.  I think it would be ideal for Kendo to have a secondary event so that any future Grid enhancements for managing row content can easily adapt to our needs to tweak it at this pivotal moment.
0 comments