ServerDataList V1.0 F1.7

File Name: ServerDataList.asp
Class Name: ServerDataList

Overview
A data bound list WebControl that displays items using templates.



Public Constructors
New_ServerDataList(name) This constructor is used to create an instance of the control while at the same time assiging it a name and id.
New ServerDataList This is the default constructor and it will create an instance of the control without a name. Controls instanciated this way must assign the name of the control manually by doing this: <controlVariable>.Control.Name = "<ControlName>"

Public Properties
Control WebControl Inherits attributes from the WebControl class.
DataSource ADODB.RecordSet Gets/Sets the datasource.
HeaderTemplate ServerItemTemplate Gets the ServerItemTemplate used to render the Header.
ItemTemplate ServerItemTemplate Gets the ServerItemTemplate used to render the item.
AlternateItemTemplate ServerItemTemplate Gets the ServerItemTemplate used to render the alternating items.
FooterTemplate ServerItemTemplate Gets the ServerItemTemplate used to render the footer.
SeparatorTemplate ServerItemTemplate Gets the ServerItemTemplate used to render the item separator.
SelectedItemIndex Int Gets/Sets the selected item index (-1 no selection)
EditItemIndex Int Gets/Sets the selected edit item index (-1 no selection)
RepeatLayout Int 0) Flow Layout, 1) Table Layout (default)
RepeatDirection Int 0) Vertical, 1) Horizontal (default)
RepeatColumns Int Gets/Sets the number of columns to display.

Public Methods
(default) Render Renders the control to the page.

Public Events
-- --

Protected Properties
-- -- --

Protected Methods
WriteProperties(bag) Invoked by the CLASP Framework to allow the control to restore its state after a postback. Bag is of type PropertyBag and can be used to read (or write) to the control viewstate.
ReadPropertied(bag) Invoked by the CLASP Framework to allow the control to persist its state before the page is destroyed. Bag is of type PropertyBag and can be used to read (or write) to the control viewstate.
RenderByColumn Renders the list in horizonal layout
RenderByRow Renders the list in vertical layout

Protected Events
HandleClientEvent Pass-through. There is nothing being handled by this control...