dojango icon indicating copy to clipboard operation
dojango copied to clipboard

25 - Grid startup is always called at creation

Open klipstein opened this issue 13 years ago • 0 comments

Grid.startup() is called at creation, this is fine in many cases. However
if you have a tab setup and the grid is not displayed in the visible tab at
startup you will not see the grid unless you call _refresh() or delay
startup() until that pane is selected.

This patch allows pane_id and parent_id to be passed to the grid and every
time that the parent_id changes tabs it will check if the pane the grid is
in is selected and call startup() if it is.

Further you can pass root_id for a higher row of tabs or some other
condition along with pane_id and parent_id. Either way as the startup
method is called the event will be unsubscribed.

Default behavior is the same as before, calling startup() during addOnLoad.
Original link: http://code.google.com/p/dojango/issues/detail?id=25

klipstein avatar Nov 06 '11 12:11 klipstein