ASP.NET TreeView and Checkboxes(mikeborozdin.com)

submitted by MikeBorozdinMikeBorozdin(1146) 3 years, 9 months ago

Although the TreeView control is a very powerful one, there are some pitfalls that you can run into when using it. One of the most popular problem is using checkboxes in TreeView. Despite the fact that you can enable checkboxes by setting ShowCheckBoxes="All" you still have to write a lot of JavaScript code to make it work properly. The problems are: * When you check a parent or a branch node the child nodes don't get checked * TreeView doesn't generate <label> tags around the nodes text, so when user click on the text next to the checkbox, the latter don't get checked My solution written with JavaScript and with the help of ASP.NET AJAX library (so, don't forget to put a ScriptMana

add a comment |category: |Views: 209

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story