Enhanced List Box

We developed this Custom Control for project situations where we needed to present long lists of options for a user to choose from in a multi-select or single-select ListBox in XMod Pro forms.

Installation

Install the provided zip file through the DotNetNuke extension manager just like a standard module. Once the installation is complete the control can be used with XMod Pro Forms.

Usage

Add the following to the top of the XMod form you wish to add the control to:

<register tagprefix="mc" namespace="xmpcontrols" assembly="xmpcontrols" />

You can now add the custom control to the form using the following syntax:

<mc:EnhancedListBox

    Id="ddlCountries" 
    DataField="Country"  
    DataType="string"
    Rows="5" 
    Width="520"
    SelectionMode="Multiple" 
    SelectedItemsSeparator="|"
    DataSourceId="dsCountries" 
    DataTextField="Text" 
    DataValueField="Text" 
    AppendDataBoundItems="true"
>
<ListItem Value="-1">- Please Select -</ListItem>

Properties

The Enhanced Listbox extends the standard Xmod Listbox meaning that all standard Listbox properties are available

Notes

Login