Can anyone help me determine how to change the height of the WebTab so that it changes depending on the screen.height of the user's screen. I was able to do this with the UltraWebGrid by doing the following in the InitializeLayoutHandler, but I can't figure out how to do the same thing for the WebTab:
grid.resize(screen.width - 65, screen.height - 395);
OK...so that didn't work for me. The tab height doesn't change if I change the screen resolution. When viewing what is returned, it seems to always return the same width and height regardless of what I choose as the resolution.
Any suggestions?
Hi,
It is not clear what you need to do. Your (probably) server codes refer to Windows.Form, but codes related to grid are probably javascript.
If you need to change size of WebTab on client, then you may use setSize(width, height) method. For example, process Initialize or Loaded event and:
<script type="text/javascript">function WebTab1_Loaded(sender, eventArgs){ sender.setSize('200px', '100px');}</script><ig:WebTab ID="WebTab1" runat="server" ...> <ClientEvents Loaded="WebTab1_Loaded" /> ...</ig:WebTab>