Hello David,
I would suggest another approach. Get the column index and target the column name by it.
function attachRowEvent() {
var grid = $("#grid").data("kendoGrid");
$(grid.tbody).on('click', "td", function (e) {
var row = $(this).closest("tr");
var colIdx = $("td", row).index(this);
localStorage.currentRowId = $(e.target.closest('tr')).attr('data-uid');
localStorage.columnName = grid.columns[colIdx].field;
grid.editRow(e.target.closest('tr'));
})
}
Let me know if you have any questions.
Regards,
Nikolay
Progress Telerik
Progress is here for your business, like always.
Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.