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

  • Thread starter Thread starter Max2006
  • Start date Start date
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
 
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.

--------------------
 
Back
Top