Hi,
i am Srinivas
In my project i have a RadTreeView to displays a nodes form Backend database. it shown in first attachment. Here i want to change the node back color based on the condition. it was executed successfully at first time when i expand the parent node. there after when i check on the node then it displays the data in RadGrid successfully but it removes the Node BackColor automatically. it shown in second attachment.
The following is the code for Change the Node Back Color.
Protected Sub RadTreeView1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadTreeView1.PreRender
If Session("parentnode") Is Nothing Then
Else
Dim data As DataTable = GetChildNode(Session("parentnode").ToString())
For Each row As DataRow In data.Rows
Dim node As New RadTreeNode()
If row("job_status").ToString() = "NS" Then
node.BackColor = Color.LightSkyBlue
End If
Next
Please Help me
Thank You
D.Srinivas
i am Srinivas
In my project i have a RadTreeView to displays a nodes form Backend database. it shown in first attachment. Here i want to change the node back color based on the condition. it was executed successfully at first time when i expand the parent node. there after when i check on the node then it displays the data in RadGrid successfully but it removes the Node BackColor automatically. it shown in second attachment.
The following is the code for Change the Node Back Color.
Protected Sub RadTreeView1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadTreeView1.PreRender
If Session("parentnode") Is Nothing Then
Else
Dim data As DataTable = GetChildNode(Session("parentnode").ToString())
For Each row As DataRow In data.Rows
Dim node As New RadTreeNode()
If row("job_status").ToString() = "NS" Then
node.BackColor = Color.LightSkyBlue
End If
Next
Please Help me
Thank You
D.Srinivas