RSS
people

Database driven Asp.Net JQuery Tree

Bassistance.de has a great JQuery tree plugin and I thought to make it database driven using Asp.Net and C#. JQuery tree is a highly customizable tree with lot of options available. See the full list of options available with JQuery tree here (see the functions options given in the bottom table)

Click here to see the DEMO and DOWNLOAD the source

Database Schema
For Asp.Net JQuery Tree you can use the same Asp.Net tree DB schema which I explained in my previous post.
Its an N-Level tree and can be stored in a self referencing table (a table with foreign key to the same table). The table will have a PK field ID and an FK field ParentID which will refer to the ID field of same table itself.

Asp.Net Dropdownlist tree DB Schema

Asp.Net Dropdownlist tree DB Schema

READ MORE »

8 Comments | Tags: ,

Asp.Net Tree DropdownList & ListBox

Ever needed to display data in tree format inside an asp.net DropDownList or ListBox?.

A simple search for “tree dropdown list” returned lot of requests for asp.net dropdown tree. See here, here & here to see questions about dropdown list tree control in Asp.Net.

So I thought to blog about how to implement an asp.net tree dropdown list using c#.

One way to create dropdown list tree is show/hide JavaScript tree inside a div and simulate a dropdown display. But here am going to explain a very simple implementation using recursion. There is no JavaScript involved.

Click here to see the DEMO and DOWNLOAD the source

Features

  1. Show data in tree format inside a dropdown list or listbox.
  2. N-levels of tree nodes are possible.
  3. No JavaScript.
  4. All the usual dropdown list and listbox properties such as AutoPostaBack and multi selection is available
  5. Admin side to add/update/delete nodes to the tree

READ MORE »

6 Comments | Tags: