This project is read-only.

double click row

Feb 24, 2014 at 5:43 PM
How to use dblclick on a grid row?

tried this but says undefined..
pageGrids.messagelibrary.DBLCLICK(function (e) {
alert(e.row.Id + "\n" + e.row.Text + "\n" + e.row.Name);
Feb 26, 2014 at 4:13 PM
Edited Feb 27, 2014 at 4:44 PM
The below works:
<div class="col-md-4" id="TextMediaContent">

                @Html.Partial("_MessageLibraryPartialView")         // Has the MVCGrid      
            </div> 

$('#TextMediaContent td').dblclick(function () {
        var $this = $(this);
        var row = $this.closest("tr");
        var rowid = row.find('[data-name="Id"]:last').text();
        var url = '@Url.Action("Edit","TextMedia")' + "/" + rowid + "?c=AdHoc";
        window.location.href = url;

    });