|
Rank: Member Groups: Member
Joined: 1/21/2009 Posts: 22
|
Hi EO, I think I'm missing something with the TreeView control. No matter what I try, I keep getting nothing returned when I lookup what checkboxes are checked. Here's some code.
Code: HTML/ASPX
<eo:TreeView ID="eoTvEstablishments" runat="server" ControlSkinID="None" Width="500px">
This is on the pages submit button
Code: Visual Basic.NET
For Each eoNode As EO.Web.TreeNode In eoTvEstablishments.SelectedNodes
Response.Write(eoNode.Text & ": " & eoNode.Value & "<br />")
Next
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You may want to use a Label control, then set the Label control's Text property instead of using Response.Write. You can also set a breakpoint in your debugger to see if that got hit.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 1/21/2009 Posts: 22
|
No change. I don't understand it.
Am I using the correct code?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please create a test page that reproduces the problem. The code you posted is fine, so the problem is somewhere else. If you can create a reproducing page, we will be happy to take a look. Make sure the page runs independently.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 1/21/2009 Posts: 22
|
Sending you a pm now.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We looked into the code that you sent to us. It appears that you misunderstood what SelectedNodes is. SelectedNodes contains all selected, not checked nodes. A selected node is a node that currently is highlighted in blue, it's not related to check state of each node in any way. In order to get a list of all checked node, you will need to walk through all node recursively and check the node's Checked state.
Thanks!
|
|