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

TreeView RTL (Right to Left) support

1 Answer 164 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mahmood
Top achievements
Rank 1
Mahmood asked on 12 Nov 2012, 06:14 AM
Hi.
I'm using TreeView in a right to left page. but it is not showing as expected. This is the HTML I'm using:

<div class="k-rtl">
    <div id="accessTree"></div>
</div>

I'vs attached an image of what I see in Chrome.
I have managed to get it working by these lines of CSS:

.k-rtl .k-treeview .k-plus, .k-rtl .k-treeview .k-minus, .k-rtl .k-treeview .k-plus-disabled, .k-rtl .k-treeview .k-minus-disabled
{
    float: right;
}
.k-rtl .k-treeview .k-item
{
    padding: 0 16px 0 0;
}

The second image shows the tree after applying the css.
Am I missing something or this is an issue?
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Mahmood
Top achievements
Rank 1
answered on 11 Dec 2012, 04:57 AM
Sorry to bother you. I had forgotten to reference "kendo.rtl.min.css" file.
My bad.
Tags
TreeView
Asked by
Mahmood
Top achievements
Rank 1
Answers by
Mahmood
Top achievements
Rank 1
Share this question
or