TreeView Scrollviewer

10 posts, 1 answers
  1. Rob
    Rob avatar
    6 posts
    Member since:
    Sep 2008

    Posted 08 Oct 2008 Link to this post

    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
  2. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 08 Oct 2008 Link to this post

    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.
  3. Anil Sahu
    Anil Sahu avatar
    9 posts
    Member since:
    Aug 2009

    Posted 07 Sep 2009 Link to this post

    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
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 07 Sep 2009 Link to this post

    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.
  5. Anil Sahu
    Anil Sahu avatar
    9 posts
    Member since:
    Aug 2009

    Posted 07 Sep 2009 Link to this post

    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
                     
  6. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 07 Sep 2009 Link to this post

    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.
  7. Anil Sahu
    Anil Sahu avatar
    9 posts
    Member since:
    Aug 2009

    Posted 07 Sep 2009 Link to this post

    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

  8. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 07 Sep 2009 Link to this post

    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.
  9. Anil Sahu
    Anil Sahu avatar
    9 posts
    Member since:
    Aug 2009

    Posted 08 Sep 2009 Link to this post

    Hello Abert,
                     As u suggested solution is not working yet.But anyways thanks tor reply me.
    Regards,
    Anil Sahu
  10. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 08 Sep 2009 Link to this post

    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.
Back to Top