Automatically Resize dojo dijit.Grid widget when it's parent container resizes

I have a dojo Grid widget inside a TitlePane with it’s width set to 100%.

The TitlePane is in a liquid layout so it’s width changes with the browser window size. The problem I am having is that when the parent wItindow expands (or contracts) the grid itself does not change it’s width. I can get it to resize itself by calling render() on the grid, but how can I detect that the parent window has resized so that I know to redraw the grid widget?
Its also accure when using the extended display.

Is this in a template? Try setting both the height and width of dgrid tou 100%.
If you add the grid programmatically then add a resize function in your widget and call this.mygrid.resize()