By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

Treeview right to left display?

P: n/a
Hi,

For design reasons I need treeview control to display right-to-left, i.e,
with its parent nodes to the right and the child nodes indented to the left,
however I cannot find a suitable property to change.

Is this possible please, and if so, how?

TIA

Nov 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,
You can put the treeview control inside a div element and set the div dir
attribute to be righ to left as follows

<div dir="rtl">
<asp:TreeView runat="server" id="tree">
</asp:TreeView>
</div>

Regards,
Mohamed Mosalem
"Stuart" wrote:
Hi,

For design reasons I need treeview control to display right-to-left, i.e,
with its parent nodes to the right and the child nodes indented to the left,
however I cannot find a suitable property to change.

Is this possible please, and if so, how?

TIA
Nov 12 '06 #2

P: n/a
Yay! It works!
Not just for the TreeView, but works for an asp:Menu too :D

Many thanks
"Mohamed Mosalem" <Mo************@discussions.microsoft.comwrote in
message news:1B**********************************@microsof t.com...
Hi,
You can put the treeview control inside a div element and set the div dir
attribute to be righ to left as follows

<div dir="rtl">
<asp:TreeView runat="server" id="tree">
</asp:TreeView>
</div>

Regards,
Mohamed Mosalem
"Stuart" wrote:
>Hi,

For design reasons I need treeview control to display right-to-left, i.e,
with its parent nodes to the right and the child nodes indented to the
left,
however I cannot find a suitable property to change.

Is this possible please, and if so, how?

TIA
Nov 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.