Splitter resizing problem

2 posts, 0 answers
  1. Mark
    Mark avatar
    12 posts
    Member since:
    May 2008

    Posted 29 Jul 2008 Link to this post

    Hi,

    Our problem: 
    Splitter not resized in its container when the container (e.g. TR) resized itself by other event

    More Details:
    -I have splitter inside user control.
    -I have page with table. The user control with the splitter hosted in this page in specific TR.
    - Other TR in this specific table has dynamic display TR.
    - When the dynamically TR Hidden the splitter TR resized automatically. But the splitter stay with the same height (not fit the inside the container TR).

    p.s.
    -
    I know the splitter has the Client API Resize method but I don’t want to use it (the splitter hosted in some user control and the table in page).
    - I already try to work with DIV instead of table.

    Code:
    <table Height="99%" Width="98%" border="1">
    <
    tr>
    <
    td valign="top" >
    <
    telerik:RadSplitter ResizeWithParentPane="true" ResizeWithBrowserWindow="true"
    Orientation="Horizontal" ID="splAll" LiveResize="false"
    Skin="Gray" runat="server" Height="100%" Width="100%" >
    <
    telerik:RadPane ID="filterPane" runat="server" Height="30%" Width="100%">
    AB
    </
    telerik:RadPane>
    <
    telerik:RadSplitBar ID="splbFilterAgainstTreeAndSearch" runat="server"
    CollapseMode="Forward" EnableResize="true" />
    <
    telerik:RadPane Width="50%" Scrolling="None" ID="treeAndSearch" runat="server">
    CD
    </
    telerik:RadPane>
    </
    telerik:RadSplitter>
    </
    td>
    </
    tr>
    <
    tr id="tr1" height="80px">
    <
    td onclick="trtochange.style.display='block';">click to show</td>
    </
    tr>
    <
    tr id="trtochange" height="80px">
    <
    td onclick="trtochange.style.display='none';"> click to hide</td>
    </
    tr>
    </
    table>

    How can we solve the problem? May be you have behavior like ResizeWithBrowserWindow="true" meaning the splitter resized automatically when its container changed?

    Thanks,
    Olga
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 30 Jul 2008 Link to this post

    Hi Mushon,

    I am not sure whether I understand you correctly. I assume that you want the splitter take the height of the row which has become invisible but it doesn't. If the RadSplitter has height set to 100% it will automatically resize according to its parent's size. The problem in your case is due to the table in which the splitter is placed becoming smaller when you hide one of its rows. If you want the splitter take the height of the hidden row you will need to set the height of the table to that it was before hiding the row. For your convenience I have attached my test pages based on the scenario you describe which demonstrate how to achieve the described scenario. Please, let me know if this is not your case.

    All the best,
    Sophy
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top