The resize event of the Kendo UI Window is fired only when the widget is resized by the user. There are couple of other events you can handle, depending on when exactly the Grid that is inside the TabStrip is populated with data and expands the Kendo UI Window.
You can use either the activate
event of the TabStrip or dataBound
event of the Grid, get a reference to the closest parent Kendo UI Window and center it in the handler.
An alternative approach would be to set fixed dimensions for the Window (.Width(...).Height(...)
) and make the Grid scrollable (...Scrollable(True)
), so you would not need to center the Window every time the Grid comes up with different size.
Let me know if you need further assistance.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items