New to Telerik UI for ASP.NET MVC? Download free 30-day trial


By default, the selection functionality of the Telerik UI Grid for ASP.NET MVC is disabled.

Getting Started

To control the selection in the Grid, use the Selectable property.

        .Selectable(selectable => selectable

Select Modes

The Grid supports the following select modes:

You can set the select mode to Multiple or Single. Additionally, the Grid provides the Row and Cell select types which allow multiple or single selection of rows or cells.

        .Selectable(selectable => selectable

Drag to Select

The Grid allows conditional drag to select when multiple selection is configured for rows or cells through the DragToSelect property.

        .Selectable(selectable => selectable

Persisting the Selection

The Grid also provides a built-in functionality for persisting the selection through the PersistSelection property and its setting it to true.

To persist the selection in the Grid, you also need to configure the ID field in the schema of the DataSource. For a runnable example, refer to the demo on persisting the state of the Grid.

    .DataSource(dataSource => dataSource
        .Model(model => model.Id(p => p.OrderID))

Getting Selected Rows Data

To get data from the selected rows, use the Change event of the Grid

  1. Specify the name of the JavaScript function which will handle the event.

        .Events(ev => ev.Change("onChange"))
  2. Declare the event handler and access the selected data items.

        function onChange(e) {
            var selectedRows =;
            var selectedDataItems = [];
            for (var i = 0; i < selectedRows.length; i++) {
                var dataItem = this.dataItem(selectedRows[i]);
            // selectedDataItems contains all selected data items

See Also

In this article