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

RadTreeview Right to Left direction text indents

4 Answers 146 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jo Bert
Top achievements
Rank 1
Jo Bert asked on 18 Aug 2009, 01:42 AM
Hi,

I'm using the current version of radtree view and I am encountering onoe problem. I want to place the arrow image in the part of the node so i set the direciton of the radtreeview to RTL and the text indent to left. I was able to achieve the image to be placed in the right part, but when the title of the node contains a long texts, the first line was indented a bit. can you advice me on this one?
This is what it looks like:

Home >
 How To Use This
Wiki Library >

The second item with the longer text was indented.
This is my code:

.RadTreeView,
.RadTreeView a.rtIn,
.RadTreeView .rtEdit .rtIn input
{
 font-weight: normal;
 font-size: 12px !important;
 font-family:Arial;
  color: #336699;
 text-decoration: none;
 line-height: 14px;
 width:auto;
 margin:0px;
 white-space: normal;
 direction:rtl;
 text-align: left;
 margin-right:15px;
 display:inline-block !important; 
    whitewhite-space:normal !important;  
 overflow:visible !important;
}
.RadTreeView .rtPlus,
.RadTreeView .rtMinus
{
 background-image: url('TreeView/plusminus.jpg');
 vertical-align: baseline;
}

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 20 Aug 2009, 02:30 PM
Hello Jo Bert,

Please add the following css styles to ypur page and let us know how it goes:

.RadTreeView_rtl .rtIn, 
.RadTreeView_rtl .rtEdit .rtIn input 
    width: 100% !important;  
    displayinline-block !important; 
    text-alignleft !important; 


Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hamdy
Top achievements
Rank 1
answered on 14 Mar 2010, 12:22 PM
I have the same problem and still not working
specially the image of the paths
like
|
|__

it should be

    |
__|

0
Yana
Telerik team
answered on 17 Mar 2010, 12:58 PM
Hi Hamdy Ghanem,

Please explain in more details the issue you're experiencing and/or send us a screenshot.

Best regards,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hamdy
Top achievements
Rank 1
answered on 18 Mar 2010, 10:58 AM
I add this line

 RadTreeView1.Attributes("dir") = "rtl"


It works now thanks
Tags
TreeView
Asked by
Jo Bert
Top achievements
Rank 1
Answers by
Yana
Telerik team
Hamdy
Top achievements
Rank 1
Share this question
or