Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
set WebExplorerBar properties dynamically
posted

How do i set WebExplorerBar's GroupContentsHeight from javascript?

i have a default.aspx page with:

<div id="page_center_div" align="center">
  <div id="header_div" style="position: relative; top: 0px; left: 0px; width: 1044px;
                                 height: 90px; border: 0px">
      <iframe id="top1" name="top1" frameborder="0"
                                 marginheight="0" marginwidth="0" scrolling="no" width="100%"
                                 height="100%" src="navigation/top.aspx"
                                 style="background-color: Transparent" allowtransparency="true"></iframe>
  </div>
  <div id="navigation_div" style="position: relative; top: 0px; left: 0px; width: 1044px;
                                 height: <%=ClientHeight%>; border: 0px">
      <iframe id="nav" name="nav" align="left" frameborder="0" marginheight="0" marginwidth="0"
                                 scrolling="auto" width="230px" height="100%" src="navigation/nav.aspx"
                                 style="background-color: Transparent" allowtransparency="true"></iframe>
      <iframe id="main" name="main" align="right" frameborder="0" marginheight="0" marginwidth="0"
                                 scrolling="auto" allowtransparency="true" style="background-color:
                                 Transparent" width="814px" height="100%" src="<%=WelcomePage%>"></iframe>
  </div>
  <div id="footer_div" style="position: relative; top: 0px; left: 0px; width: 1044px; height: 21px">
      <iframe id="bottom" name="bottom" frameborder="0" marginheight="0" marginwidth="0"
                                 scrolling="no" width="100%" height="100%"
                                 src="navigation/bottom.aspx" style="background-color:
                                 Transparent" allowtransparency="true"></iframe>
  </div>
</div>

and i need to change the GroupContentsHeight property on WebExplorerBar which is located in the iframe id="nav" every time the window resizes.

the nav.aspx contains:

<div>
           <asp:ScriptManager ID="ScriptManager1" runat="server">
           </asp:ScriptManager>
           <ig:WebExplorerBar ID="UltraWebListbar1"
                runat="server"
                Width="100%"
                Height="100%"
                GroupExpandBehavior="SingleExpanded"
                GroupContentsHeight="100%">
           </ig:WebExplorerBar>
</div>

i try JQuery in default.aspx page as
$('#nav').contents().find('#UltraWebListbar1').prop('GroupContentsHeight',
                                                                         window.innerHeight - (30 * 8));
$('#nav').contents().find('#UltraWebListbar1').attr('GroupContentsHeight',
                                                                         window.innerHeight - (30 * 8));

but both .prop and .attr are not working.