2 Replies - 1435 Views - Last Post: 26 July 2013 - 01:22 AM Rate Topic: -----

#1 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 391
  • Joined: 04-January 11

TreeNode Parent- Child Selection

Posted 24 July 2013 - 02:03 AM

I am using ASP.NET Framework 3.5.

I am populating a TreeView dynamically. Child nodes should automatically be selected or deselected based on the value of its parent node's Checked property.

I have searched Google and have read about the AfterCheck event but I don't know how to make it work.

Here's the article: http://msdn.microsof...k(v=vs.85).aspx

I do not have the TreeViewEventArgs. Is this code for a higher version of .NET?

I would like to ask you guys for help in doing this. It's my first time working with the TreeView control so I hope you can guide me.

Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: TreeNode Parent- Child Selection

#2 Nakor  Icon User is offline

  • Professional Lurker
  • member icon

Reputation: 442
  • View blog
  • Posts: 1,488
  • Joined: 28-April 09

Re: TreeNode Parent- Child Selection

Posted 25 July 2013 - 11:56 AM

That example is using the Windows.Forms TreeView, you need to look for examples that use the System.Web.UI TreeView
Was This Post Helpful? 0
  • +
  • -

#3 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 391
  • Joined: 04-January 11

Re: TreeNode Parent- Child Selection

Posted 26 July 2013 - 01:22 AM

I am able to achieve what I need using javascript codes as found in http://www.nullskull...javascript.aspx

I just replaced some codes to suit my needs. However, I have another question. Is it possible to disable a TreeNode Checkbox? I do not want to hide it. If possible, I want to do it from the server side because the condition to enable or disable depends on one column of the table retrieved from the database on page load.

Can anyone help?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1