DoubleListBox

10/02/2009 4:43 PM

Abstract

Create a custom control that allows things to be moved between two categories. This component will consist of two parts, the FilteredListBox which simply lists the results of a query string and the Double ListBox which will contain two FilteredListBoxs and the controls to move things between them. This interface will be used to do things like add users to a group or add nodes to a parent node.

FilteredListBox

The filter list box shall contain, in order from top to bottom, the FieldSelection, the OrderByField, the LetterSelect, and a multi-select box with the results.

Objects

  • Filters - array list
  • List multi-select

Properties

  • listDataSource
  • baseSQLStatement

Events

  • FilterChanged

Functions

  • protected override void CreateChildControls()
  • loadFromDB()
  • DataBind() {EnsureChildControls(); base.DataBind(); }
  • protected override void Render(HtmlTextWriter output)

Filter Objects

We will have 3 different types of filters that can be added to the page: FieldSelect, OrderByField, LetterSelect.

Properties

  • VisibleAfterN - 0 = invisible, 1 = always, n = if there are n records
  • SQLField
  • Values
  • SelectedValue
  • FilterExpression

Events

  • FilterChanged

Functions

  • protected override void CreateChildControls()
  • DataBind() {EnsureChildControls(); base.DataBind(); }
  • protected override void Render(HtmlTextWriter output)
Tags:
Home: WikiStart
What's new: Recently changed articles
You can subscribe to this wiki article using an RSS feed reader.