iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Latest Development Blogs
Browse By Tag
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;
if (WebLoanRow.Enabled == (int)NodeEnabled.Enabled)
e.Node.CustomStyle = "SetRedColor";
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>";
Sorry for the late reply. The value of CustomStyle property needs to be a css rule, it can't be a class like you demonstrated. Here's an example on how to use CustomStyle properly:
e.Node.CustomStyle = "color: red; font-size: 18pt;";
Hope this helps.
Forgot your password | Sign up
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
Already a member? Sign in