This is a migrated thread and some comments may be shown as answers.
TreeView Scrollviewer
9 Answers 119 Views
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 08 Oct 2008, 09:52 AM
Hello,

I am trying to hide the scrollbars for my RadTreeView, but I get an error while parsing the XAML. 

The error is:            

Unknown attribute ScrollViewer.HorizontalScrollBarVisibility on element RadTreeView. [Line: 161 Position: 56]

Is this a known problem, or am I doing something wrong?

I use the following attribute:

 ScrollViewer.HorizontalScrollBarVisibility="Hidden"

Kind Regards,

Rob

9 Answers, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 08 Oct 2008, 10:48 AM
Hi Rob,

you need to defin the Microsoft.Windows.Controls namespace at the begining of your page like that:

xmlns

 

:ms="clr-namespace:System.Windows.Controls;assembly=System.Windows"

 


and then yo use this prefix when using the ScrollViewer attached properties:

<

 

telerik:RadTreeView ms:ScrollViewer.HorizontalScrollBarVisibility="Visible"  ...

 

Let us know if you have any other problems.

Greetings,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anil Sahu
Top achievements
Rank 1
answered on 07 Sep 2009, 08:32 AM
Hello All,
            I am new urse of Telerik RadTreeview control. Now i want RadTreeView in horizontal and Vertical Scrollbar.
i have gone through the following coed ,b ut its not working.
"

mlns

 

:ms="clr-namespace:System.Windows.Controls;assembly=System.Windows"

"

How could i do this.
Thanks in advance
0
Valentin.Stoychev
Telerik team
answered on 07 Sep 2009, 08:46 AM
Hello Anil Sahu,

It should work. Have you defined the attached property to the treeview?

<telerik:RadTreeView ms:ScrollViewer.HorizontalScrollBarVisibility="Visible"  ms:ScrollViewer.VerticalScrollBarVisibility="Visible"


Regards,
Valentin.Stoychev
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Anil Sahu
Top achievements
Rank 1
answered on 07 Sep 2009, 12:53 PM
Hello ,
           Thanks to reply me, bit its not working at all.can you please send me attached file  .aspx  file.
            hope  you will revert back me for the same.

Regards,
Anil Sahu
                 
0
Valentin.Stoychev
Telerik team
answered on 07 Sep 2009, 01:06 PM
Hello Anil Sahu,

Are you referring the Silverlight Treeview? There is not ASPX page associated with a Silverlight application.

I'm attaching you the whole project.

If you have a question about the ASP.NEt treeview please post it in the ASP.NET forum.

Thanks!

All the best,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Anil Sahu
Top achievements
Rank 1
answered on 07 Sep 2009, 01:33 PM
Hello Stoychev ,
                          Really thanks a lot .I am using teleriK control in asp.net 3.5.Now please tell me how can i use SCrollbar in treeview control?


My code is :
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Navigation.ascx.cs" Inherits="UserControls_Reports_Navigation" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<table>
    <tr valign="top">
        <td>
            <telerik:RadTreeView  EnableViewState="true" ID="DomainRadTreeView" runat="server"
                OnNodeClick="DomainRadTreeView_NodeClick">
            </telerik:RadTreeView>

        </td>
    </tr>
</table>

Regards,
Anil Sahu

0
Atanas Korchev
Telerik team
answered on 07 Sep 2009, 04:13 PM
Hi Anil Sahu,

You need to set the Width or Height property of RadTreeView. If the content becomes bigger (wider or taller) RadTreeView will render scrollbars.

Regards,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Anil Sahu
Top achievements
Rank 1
answered on 08 Sep 2009, 09:52 AM
Hello Abert,
                 As u suggested solution is not working yet.But anyways thanks tor reply me.
Regards,
Anil Sahu
0
Atanas Korchev
Telerik team
answered on 08 Sep 2009, 02:25 PM
Hello Anil Sahu,

This is very strange. Please check this online example showing a scrollable treeeview.

Regards,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Asked by
Rob
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Anil Sahu
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or