RadTreeView enlarges on mouse over

4 posts, 0 answers
  1. Petr
    Petr avatar
    1 posts
    Member since:
    Jan 2012

    Posted 05 Jan 2012 Link to this post

    Hi,

    I'm trying to use the RadTreeView with fixed width and with overflow: auto. In IE9 after the horizontal scrollbar has appeared if you hover with mouse over any node the TreeView enlarges (mean it's higher). This happend every time, so the TreeView is higher and higher. Here is a sample code:

    aspx:
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="rsmMain" runat="server" EnablePageMethods="true" EnableScriptGlobalization="true" EnablePartialRendering="true"/>
        <telerik:RadTreeView ID="rtvTree" runat="server" style="width: 150px; overflow: auto; border: 1px solid black;" />
        </form>
    </body>
    </html>

    code behind:
    protected void Page_Load(object sender, EventArgs e) {
          rtvTree.Nodes.AddRange(new List<RadTreeNode>() { new RadTreeNode("test Node 01", "1"), new RadTreeNode("test Node 02", "2") });
          rtvTree.Nodes[0].Nodes.AddRange(new List<RadTreeNode>() { new RadTreeNode("test Node 01 - 01", "3"), new RadTreeNode("test Node 01 - 02", "4") });
          rtvTree.Nodes[0].Nodes[0].Nodes.AddRange(new List<RadTreeNode>() { new RadTreeNode("test Node 01 - 01 - 01", "5"), new RadTreeNode("test Node 01 - 01 - 02", "6") });
        }

    If you'll expand all nodes, horizontal scroll bar will appear.
    Please let me know whether I miss something important or whether is there some work-around.

    Thanks,

    Petr Kotal.
  2. David
    David avatar
    1 posts
    Member since:
    Jan 2012

    Posted 11 Jan 2012 Link to this post

    Hello,

    I would like to vote this one up. We have the same issue with treeview, still looking for a workaround, waiting for fix. Is there any progress on that, or do someone know any workaround for the issue?

    Thanks,
    David
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 11 Jan 2012 Link to this post

    Hello,

    We are currently working to find a workaround for this problem. Once we have a solution I will provide it here.

    Kind regards,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    540 posts

    Posted 01 Mar 2012 Link to this post

    Hello, David.

    The fix for this is rather odd -- just add max-height: 100% to the containing div.

    As per the attached project.

    All the best,
    Ivan Zhekov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top