TreeView: Is there any way to specify NodeIndent property for a specific level

M

Max2006

Hi,
asp:TreeView question:

Is there any way to specify NodeIndent property for a specific level or
node?
So far I can define NodeIndent for all levels.

Thank you,
Max
 
S

Steven Cheng [MSFT]

Hi Max,

I agree with Munna that the ASP.NET TreeView control's NodeIndent is a
global setting which apply for all the nodes (sub level will indent from
upper level with that indent setting). So far there is no means to make it
further customized for different level. Sure, some client script based
solution may work as
Munna suggested, that I think that will make it very complex since we need
to detect each level of nodes first in script and look for inner divs.
BTW, what's the structure of your data, does it have many levels? If not,
maybe you can use nested repeater control instead of treeview to display
the hierarchy structure.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top