Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > TreeView CheckBox Problem

Reply
Thread Tools

TreeView CheckBox Problem

 
 
Holysmoke
Guest
Posts: n/a
 
      05-23-2008
Hi All,

I am trying to visualizze checkbox in my TreeView Control, but I does n't
show up. I see there is a space for checkbox but I don't see the checkbox.

I wonder what would have gone wrong

I set ShowAllCheckBoxes = All, I generate the checkbox for the node which I
want via code.

Here is excerpt of my code,

<asp:TreeView ID="TvServer" Width="250" ExpandDepth="1"
runat="server" ShowCheckBoxes="All" SkinID="Cubes">
</asp:TreeView>


Then on code behind i generate

TvServer.Nodes.Clear()
'Add TopNode
Dim TopNode As New TreeNode(My.Application.Cache.ServerName,
My.Application.Cache.ServerName)
TopNode.PopulateOnDemand = False
TopNode.ShowCheckBox = False
TvServer.Nodes.Add(TopNode)

For Each Cube As Cube In My.Application.Cache.Cubes
AddNode(Cube)
Next

But I does n't show up. Please Advice.

TIA,
Holy
 
Reply With Quote
 
 
 
 
Nanda Lella[MSFT]
Guest
Posts: n/a
 
      02-11-2009

Can you include the code from your AddNode method?

--

Thank You,
Nanda Lella,

This Posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
treeview with populateOnDemand and checkbox problem yusuf ASP .Net Web Controls 0 11-22-2006 07:54 PM
DataGrid and embeded Checkbox..How to find if checkbox clicked =?Utf-8?B?RG90TmV0RGV2?= ASP .Net 1 10-06-2006 04:11 PM
disable checkbox list checkbox Vikram ASP .Net 1 01-25-2006 02:59 PM
Text on Checkbox below the checkbox tshad ASP .Net 0 04-14-2005 11:26 PM
Treeview checkbox control critical problem Eilsa ASP .Net Web Controls 3 09-02-2004 08:20 PM



Advertisments