ComponentOne Extender Controls for ASP.NET Web Forms
Wijmo Control Toolkit Extender Controls / C1ListExtender / Multiple Selection in a List
In This Topic
    Multiple Selection in a List
    In This Topic

    The C1ListExtender control supports the multiple selection of list items.

    1. Create an ASP.NET Web application.
    2. Add a standard Panel control to the main content of  your page.
    3. Click the Panel smart tag and select Add Extender from the Tasks menu.
    4. In the Extender Wizard, select C1ListExtender and click OK. A C1ListExtender control is added to the page and the TargetControlID is set to Panel1.
    5. Select View | Properties Window in the Visual Studio menu.
    6. Click the drop-down list at the top of the Properties window and select TextBox1_C1ListExtender.
    7. Click the ellipsis button next to the C1ListExtender.ListItems property and add six members (Members 0-5). Set the Label and Value properties for each member as follows:

    Member

    Label

    Value

    0

    Label1

    Value1

    1

    Label2

    Value2

    2

    Label3

    Value3

    3

    Label4

    Value4

    4

    Label5

    Value5

    5

    Label6

    Value6

    1. The markup should look similar to the following:

    <cc1:C1ListExtender ID="Panel1_C1ListExtender" runat="server"

            TargetControlID="Panel1">

    <ListItems>

                <cc1:ListItem Label="Label1" Value="Value1" />

                <cc1:ListItem Label="Label2" Value="Value2" />

                <cc1:ListItem Label="Label3" Value="Value3" />

                <cc1:ListItem Label="Label4" Value="Value4" />

                <cc1:ListItem Label="Label5" Value="Value5" />

                <cc1:ListItem Label="Label6" Value="Value6" />

          </ListItems>

        </cc1:C1ListExtender>

    1. Set the C1ListExtender.SelectionMode property to Multiple.
    2. Press F5 to run the application. Select multiple list items.