Is there any way to set the CSS class for visited links? I have an inital css class, then it switches to something else for the SelectedCSSClass, but I don't see any way to set the color of the text for a visited link that is not currently selected. (It does not revert back to the original css class.)
Hello allison_musche ,
I’ve tested this on my side with nodes set-up as follows:
However when I tested this the red color was applied when a node was selected.
I’ve tested this using version 13.2.20132.2028 of 13.2. Are you perhaps using a different version?
I’m attaching the sample I used to test this for your reference. Let me know if I’m missing anything from your scenario.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
Yes, it's set to single. And, as I said, the text-decoration part DOES work - I put in an underline, just to see if the SelectedCSSClass was being applied and when. So I have:
MyCSSClass
{
color: blue;
}
MySelectedCSSClass
color: red;
text-decoration: underline;
When the tree is first drawn, the nodes are blue. When I click on a node, it DOES become underlined, but it does NOT turn red - it stays blue. Can't you set the color in the SelectedCSSClass?
Have you enabled the selection for the tree? In general if the SelectionType property of the tree is not set ,then by default it will be “None” which means that selection will be disabled so the selected class won’t be applied when you click on a node. You can set that property to "Single" or "Multiple".
Also selection would not be persisted if you navigate out of the page and then return, since in that case the tree will be reloaded.
I do have one follow up question, if you don't mind... "MyCSSClass" and "MySelectedCSSClass" are supposed to have two different colors, but it appears not to work? It always stays the color in MyCSSClass. (Font size changes don't work either. Text-decoration does, however.) Do not all propertiies work in the SelectedCSSClass?
Excellent, thank you!