Hi Support:
I have a button in my grid column like this:
<e-column header-Text="" width="100">
<e-column-commands>
<e-column-command type="assign">
<e-button-options content-type="TextOnly" text="Order" click="order"></e-button-options>
</e-column-command>
</e-column-commands>
</e-column>
But I need to retrieve the id of the selected row. I cant use the following code, because is not compatible with Internet Explorer, and we need to support IE and Chrome:
function order(args)
{
var gridInstance = $(args.target.closest(".e-grid")).ejGrid("instance");
var inx = gridInstance.getIndexByRow(args.target.closest("tr"));
var data = gridInstance.getCurrentViewData()[inx];
}
What other option I have to get the record whose button was clicked.
Thanks in advanced
David