Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Public Sub BindTreedetails()
       treedetails.Nodes.Clear()
       Dim sql As String = "select a.zbaid,b.zbaname from brvpn.user_reviewbranch a, phasezero.zba_master b where a.empno='" & Request.QueryString("wempno") & "' and a.zbaid=b.zbaid and closedate is null and zbatype='BR' order by zbaname"
       Dim cmd As New Oracle.cls_OracleCommand
       Dim dt As New DataTable
       dt = cmd.ExecuteAdapter(sql)
       For Each dr As DataRow In dt.Rows
           Dim tvNode As New RadTreeNode
           tvNode.Text = dr("ZBANAME")
           tvNode.Value = dr("zbaid")
           treedetails.Nodes.Add(tvNode)
End sub
       Next



and this is the way i am trying to fetch the value :

SQL
For Each Node As RadTreeNode In treedetails.Nodes
            If Node.Checked Then
                selected += Node.Text + ","
            End If
        Next

        tn &= "and zbaid in (" & selected & ")"


its not showing any value in breakpoints only showing selected=
Posted
Comments
_Asif_ 6-Jul-13 13:53pm    
while debugging please check that treedetails.Nodes.count value increased on each iteration. Secondly while doing iteration put a breakpoint and check whether Node.Checked value.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900