We have two grids in our site that have a custom command button declared similarly to this:
columns.Command(cmd => cmd.Custom("Unaudit").Click("unaudit")).Width(60);
var id = this.dataItem($(e.currentTarget).closest("tr")).ID;
example (not working)
columns.Command(cmd => cmd.Custom("Unaudit").Click("unaudit(data.ID)")).Width(60);
Help is appreciated. Thanks. Note that if i am required to use a client template column instead, i do know how to do that but was hoping i wouldn't have to do that.