This is a migrated thread and some comments may be shown as answers.

RadTreeView enlarges on mouse over

3 Answers 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Petr
Top achievements
Rank 1
Petr asked on 05 Jan 2012, 01:34 PM
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.

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 11 Jan 2012, 01:57 PM
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
0
Dimitar Terziev
Telerik team
answered on 11 Jan 2012, 05:41 PM
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
0
Ivan Zhekov
Telerik team
answered on 01 Mar 2012, 10:21 AM
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.
Tags
TreeView
Asked by
Petr
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Ivan Zhekov
Telerik team
Share this question
or