I am aware that the UseBodyAsParent property does not work on a webdialogwindow inside an update panel. However, not using an updatepanel is not an option is this case yet I still need to at least emulate this behavior.
The issue is that the WebDialog window exists inside a WebTab inside a Webtab which is inside an updatePanel. The update panel is a required element and as such cannot be removed. When the WebDialog Window displays it is contained within it's webtab, the problem here is if the webdialog window is larger than the webtab's content area or if the user's screen is small enough then any part of the webdialog window which extends beyond the content area is lost. I have run a little test of disabling the update panel and using usebodyasparent and that does exactl what I need. However the property does not work with the update panel enabled and the update panel must be enabled for full functionality of the site.
The Reason the Update panel is required is for another set of third party controls and the reason I cannot remove the WebDialogWindow from the update panel is because the page much have an overall update panel for the other third party controls to function correctly.
I was hoping somebody may have found a work around to this, but thank you for your help.
Is there a way then to dynamically adjust the height of the WebTab based on the size of the webdialogwindow when it opens if the height of the widow is an unknown?
Hello Guy,
Thank you for the update. You would have to detect the height of the WDW then adjust the height of the WebTab yourself. You may be able to leave the height of the WebTab blank and it should resize to its content, although it may not readjust for the WDW.
Looking at how it functions currently I would just have to ensure that the top of the wdw is contained in the content area of the webtab. is there some way to find [x,y] points of these items?
Thank you for the update. I have done some looking into this matter. You can find this by using the Left and Top properties of the WDW.
http://help.infragistics.com/doc/ASPNET/2014.1/CLR4.0/?page=Infragistics4.Web.v14.1~Infragistics.Web.UI.LayoutControls.WebDialogWindow~Left.html
http://help.infragistics.com/doc/ASPNET/2014.1/CLR4.0/?page=Infragistics4.Web.v14.1~Infragistics.Web.UI.LayoutControls.WebDialogWindow~Top.html
Please let me know if you have any further questions concerning this matter.
and how does one find where the content area of the webtab begins?