I'm using an open-sourced grid library (Nonfactors-MVC-Grid) for a .NET MVC5 application and for whatever reason, the renderer converts snake_case variable names in C# to hyphens in JavaScript.
document.addEventListener('rowclick', function (e) {
//Value in C# will be some_id
var some_id = e.detail.data.some-id; //debugger displays this
});
Obviously, this is a terrible naming convention for JS, but I'm curious if there's an alternative way to capture this variable without having to refactor my naming conventions on the back end.