473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re: Treeview Styling

On Jun 27, 10:21 pm, Mike Collins
<MikeColl...@discussions.microsoft.comwrote:
I have six different treeview controls on my page. When selecting a different
tree I would like the previous tree's node to change its color back to the
unselected color but what I have tried does not seem to work. I am not seeing
any changes to the background color of the node in the previous tree. Can
someone help me with how to do this?
Hi Mike

when you select the other trees node does it cause the page to post
back to the server
you all client side effect.?

if it post back to server you can change the previews trees node to
unselected on server...
a little code what you have tried would be appreciated ....

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jun 28 '08 #1
1 1358
Thanks for the reply. Below is what I have tried and it now works for
de-selecting the previous node, server side. The other thing I am trying to
get to work is the actual styling of the previous node. When a node is
selected, it is yellow, set in design time property. I am trying to change
the color back to its unselected color, but the code below is not changing it
at all. Just the de-selecting part is working.

string cssStyle = "color: #FFFFFF; background: none;
font-size:12pt;font-weight:bold;";
tvAccountSetup.SelectedNodeStyle.CssClass = cssStyle;

if (tvAccountSetup.SelectedNode != null)
tvAccountSetup.SelectedNode.Selected = false;
"Munna" wrote:
On Jun 27, 10:21 pm, Mike Collins
<MikeColl...@discussions.microsoft.comwrote:
I have six different treeview controls on my page. When selecting a different
tree I would like the previous tree's node to change its color back to the
unselected color but what I have tried does not seem to work. I am not seeing
any changes to the background color of the node in the previous tree. Can
someone help me with how to do this?

Hi Mike

when you select the other trees node does it cause the page to post
back to the server
you all client side effect.?

if it post back to server you can change the previews trees node to
unselected on server...
a little code what you have tried would be appreciated ....

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jun 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
5
by: SoKool | last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control. I intend to use a treeview to generate a...
3
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
6
by: L.M | last post by:
Hello, I knew how to use the treeview under VB6. After migrating to .NET, well, I'm lost. I try to add a new node, either to the same level or as a child to a selected node in the treeview....
14
by: Mr.D | last post by:
How do I save/load the contents of a Treeview to a file? I have found several good examples written i VB6, but not a single one for VB.NET. Please help. ---- Tim
8
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the...
1
by: =?Utf-8?B?U3dvb3No?= | last post by:
i have a treeview (id="trv") i would like to do something like this: trv.Attributes.Add("onexpand", "javascript:alert(this);"); i cannot make this work i would like to know if this is the...
3
by: Momomo | last post by:
Hi, I am having a problem with a control which is caused by a style on the page which I am not able to trace. If I use the control in a page without any styling it looks ok. Is there a way to...
40
by: Jukka K. Korpela | last post by:
My basic style sheet has a distinctive background and border for forms, to make the structure clearer and to make it visually evident what belongs to a form. However, as people complained that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.