New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Open the Grid Popup Editor on a Row Double-Click

Updated on Nov 16, 2026

Environment

  • Product: Telerik UI for ASP.NET Core Grid
  • Framework: ASP.NET Core
  • Client-side version tested: 2026.3.1015
  • Browser tested: Chromium

Description

How can I open the Grid popup editor by double-clicking a data row and reopen it after dismissing the popup?

The Grid fluent Events(...) configuration does not include a double-click event. Bind the DOM dblclick event and call the client-side editRow method instead.

Solution

The following example assumes that you have configured Telerik UI for ASP.NET Core in your application.

  1. Enable Popup editing and define a model ID for the Grid.
  2. Attach a delegated dblclick handler to the Grid element after initialization.
  3. Handle only data rows in that Grid's own table body. Ignore events from nested Grids.
  4. Pass the double-clicked row to editRow.

Create the model:

C#
    namespace SampleApp.Models
    {
        public class PopupProduct
        {
            public int ProductID { get; set; }
            public string ProductName { get; set; } = string.Empty;
        }
    }

Add the model namespace and sample data to the Razor view:

Razor
    @using Kendo.Mvc.UI
    @using SampleApp.Models

    @{
        var products = new[]
        {
            new PopupProduct { ProductID = 1, ProductName = "Chai" },
            new PopupProduct { ProductID = 2, ProductName = "Chang" }
        };
    }

Choose one of the following Grid declarations:

Razor
    @(Html.Kendo().Grid(products)
        .Name("grid")
        .Columns(columns =>
        {
            columns.Bound(product => product.ProductID);
            columns.Bound(product => product.ProductName);
            columns.Command(command => command.Edit());
        })
        .Editable(editable => editable.Mode(GridEditMode.PopUp))
        .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
        .Sortable()
        .DataSource(dataSource => dataSource
            .Ajax()
            .ServerOperation(false)
            .Model(model =>
            {
                model.Id(product => product.ProductID);
                model.Field(product => product.ProductID).Editable(false);
            })
        )
    )

Place this script after the chosen Grid declaration:

JavaScript
    <script>
        $(document).ready(function () {
            var grid = $("#grid").data("kendoGrid");

            grid.element.on("dblclick", "tbody > tr[data-uid]", function (e) {
                if (this.parentNode === grid.tbody[0] &&
                    $(e.target).closest(".k-grid")[0] === grid.element[0]) {
                    grid.editRow($(this));
                }
            });
        });
    </script>

Double-click a data row, close the popup, and double-click the same row again. The popup reopens even if the row remains selected.

The handler uses the clicked row rather than the selection Change event. Delegation keeps it active when sorting or rebinding replaces the rows.

The built-in Edit command remains available for keyboard users. Row selection is optional for the double-click handler.

This sample uses local data and does not persist edits to a server. For persistence, configure the read and update endpoints described in Popup Editing.

See Also