Skip to main content

CheckBoxListExtension.GetSelectedValues<T>(String) Method

Returns an array of the CheckBoxList’s selected item values.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static T[] GetSelectedValues<T>(
    string name
)

Parameters

Name Type Description
name String

A string specifying the editor name.

Type Parameters

Name
T

Returns

Type Description
T[]

An array that contains zero or more T[] objects that are the values of the selected items.

Remarks

Use the GetSelectedValues<T> method to obtain an array of values of the selected items within a CheckBoxList.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetSelectedValues<T>(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also