iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I need to change the color of Intersoft treeview nodes at runtime base of certain condition.
I tried to attach my css class on WebTreeView1_InitializeNode as below but it is not working.
protected void WebTreeView1_InitializeNode(object sender, WebTreeViewNodeEventArgs e)
{
WebLoanDesignerRow WebLoanRow = (WebLoanDesignerRow)e.Node.Value;
switch (WebLoanRow.Level)
case (int)TreeViewSelectedLevel.Type:
default:
if (WebLoanRow.Enabled == (int)NodeEnabled.Enabled)
e.Node.CustomStyle = "SetRedColor";
break;
}
Please let me know how CustomStyle property works. and how do i able to change node color at runtime.
Also if I try to override the node text by below code then color is changing at runtime but nodes are not being selectable anymore.
e.Node.Text = "<font color='red'>" + e.Node.Text + "</font>";
Seems like you double posted. I replied to your other thread (http://www.intersoftsolutions.com/Community/WebTreeView/Change-Web-treeview-Node-Text-Color-at-Runtime/).
Best Regards,Erwin
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname