panelBar.set_cssClass() method doesn't seem to work on my project.
...add item follows...
Am using this version: 2008.1.515.35
5 Answers, 1 is accepted
This version of RadControls is not supported anymore. Please update to the latest version of RadControls for ASP.NET AJAX and let us know how it goes.
All the best,
the Telerik team
client script to repro:
children is the parent node's get_nodes() result:
data is a name/value collection of node data.
node = new Telerik.Web.UI.RadTreeNode();
Why not try using this approach to set the class for the node:
See if that works work for you. Also, before trying that, I noticed you didn't enclose data.C in quotation marks. Perhaps that is the reason why it doesn't work.
I hope that helps.
For anyone who wants a real partial solution instead of useless reply, I found that if I refetch the parent and its children, then reset the property to its existing value, it renders correctly. This smacks of a code bug and I still wonder if the support team is willing to publish the known problem in this old release and the corrected code in the current release.
... all my code above ...
foreach(child in children)
if (child.get_cssClass()) child.set_cssClass(child.get_cssClass())
This seems to work although the actual class is attached to a different HTML element than if the cssClass is set by the server and sent down in the first place. We can fix that through the styling itself.
Inconsistency == bug
in my book.
We pay for support. Or at least I thought we got support when we paid. We definitely paid. The check has already cleared. Support seems to have vanished.