PDA

View Full Version : Windowshade scale to fit AdvancedDataGrid


fu-meng
09-17-2009, 10:23 PM
Hi,

I have a Windowshade as the root component; the child is an AdvancedDataGrid. I want the Windowshade to scale as a user expands/collapses a row in the DataGrid. So I trap the itemOpen and itemClose events and I try to adjust the height like this:


this.owner.measuredHeight = grid.height;
this.owner.measuredWidth = grid.width;


But it does nothing. I thought using measuredHeight and measuredWidth were the way to go when resizing at runtime.

Has anyone come across this before? Any tips are, again, very much appreciated.