I have a situation where I have a WebDialogWindow that contains a table, that then contains a WebGrid. The webdialog starts off as hidden. When a button is clicked the dialog is displayed (set_windowsState is set to "Normal" via javascript). When this happens the first time the contained web grid is about 20 pixel too high outside the table, overlapping the dialog titlebar. If I hide the dialog and then reshow it the grid snaps to the correct position. If I move the dialog box at all the grid snaps into the correct place.
I am using IE7, and 8.1 CLR2.0.
any thoughts on what needs to be done so the grid shows up right the first place.
Hi Barnabas,
That is possible, the first version did not have that property. That was added on 06/04/2009 and probably was available as service release a month or so after that.
You may upgrade for latest service release, or you may insert into content pane following wrapper.
<div style='position:relative;height:100%;width:100%.'> ... content</div>
Hi,
We use NA .Net 2008 vol2 clr35.The WebDialogWindow ContentPane does not have EnableRelativeLayout property.Any help?
Thanks,Barnabas
Works great! Thanks very much.
Maybe that is problem because WebGrid uses relative position for its html elements. To support that, container of grid should have that attribute as well. Try to set WebDialogWindow.ContentPane.EnableRelativeLayout to true.
Yes, I am experiencing this problem, not with just webgrid but command buttons not positioning correctly until the cursor is moved towards the wdw and then things snap into their proper positions. This is kind of a deal breaker if there is no work-around for this. Looks very unprofessional.