Reverse arrows

5 posts, 2 answers
  1. MahMah
    MahMah avatar
    18 posts
    Member since:
    Dec 2011

    Posted 30 Jan 2013 Link to this post

    Hello,
    Would you please tell me why the arrow icons before the nodes in right to left mode are reversed.
    for example in this page :
    http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/righttoleft/defaultcs.aspx
    If my expectations are wrong please tell me :) because I expect a reverse arrow in right to left mode.

    and another question why don't you let the user set those images in RadTreeView level and not in Node level.
    for example Microsoft TreeView control can be customized by setting ExpandImageUrl, CollapseImageUrl, NoExpandImageUrl properties ( as described here) . Its very clear and easy to understand. Why haven't you implemented something like that.

    Excuse me for being direct and frank.

    Thank you.

  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 Jan 2013 Link to this post

    Hi Mahmah

    Here in Telerik too one can easily change the Expand and Collapse Images just by using the following  CSS.
    CSS:
    <style type="text/css">
        .RadTreeView_Default .rtPlus, .RadTreeView_Default .rtMinus
        {
            background-image:url("./yourimage.png") !important;
             
        }
    </style>

    Then the image should contain both the expand and collapse image.An example of an image is attached below.

    Thanks
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. MahMah
    MahMah avatar
    18 posts
    Member since:
    Dec 2011

    Posted 01 Feb 2013 Link to this post

    Hi Princy,
    Thanks for your answer.

    Yes it works and also I should mention something additionally  :

    If we had declared a skin for our RadTreeView, it overrides our declared style and RadTreeView will get the skin style.

    So to apply your provided style to RadTreeView we should ensure that RadTreeView doesn't have any skin assigned to it.

    Best Regards,
  5. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Feb 2013 Link to this post

    Hi MahMah

    The CSS that I have nebtioned is for the Default skin.If you want to override the Skin then in the CSS you need to make a small change as.RadTreeView_SkinName,here in SkinName you can specify the Skins name.

    For eg:  .RadTreeView_Forest .rtPlus, .RadTreeView_Default .rtMinus

    CSS
    <style type="text/css">
        .RadTreeView_SkinName .rtPlus, .RadTreeView_Default .rtMinus
        {
            background-image:url("./yourimage.png") !important;
              
        }
    </style>

    Thanks
    Princy.
  6. MahMah
    MahMah avatar
    18 posts
    Member since:
    Dec 2011

    Posted 04 Feb 2013 Link to this post

    Hi Princy,

    It was helpful to me.

    Thank you.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017