-
Notifications
You must be signed in to change notification settings - Fork 350
Closed
Labels
Description
When I click on a row I get:
Unhandled exception at line 666, column 21 in http://localhost:58239/Scripts/jquery.bootgrid.js
0x800a138f - JavaScript runtime error: Unable to get property 'from' of undefined or null reference
I changed row-id to data-row-id to match your DOM. No change. Your grid is fantastic. Am I doing something wrong. I'm following your command buttons example in MVC 5. Thanks
tbody.off("click" + namespace, "> tr")
.on("click" + namespace, "> tr", function(e)
{
e.stopPropagation();
var $this = $(this),
id = that.converter.from($this.data("data-row-id")),
row = (this.identifier == null) ? that.currentRows[id] :
that.currentRows.first(function (item) { return item[that.identifier] === id; });
if (selection && that.options.rowSelect)
{
if ($this.hasClass(that.options.css.selected))
{
that.deselect([id]);
}
else
{
that.select([id]);
}
}
that.element.trigger("click" + namespace, [that.columns, row]);
});
}
Reactions are currently unavailable