dojango
dojango copied to clipboard
25 - Grid startup is always called at creation
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