I have a grid with client-side row selection turned on. After selecting a row, I want to click a button to access the row and the various individual fields in that row. How can do I do this in JavaScript? Basically, I want something like the following where I can access a column by name or index, but I don't have the syntax figured out, so it crashes...
| var grid = $find("<%= RadGrid1.ClientID %>"); |
| var masterTable = grid.get_masterTableView(); var row = masterTable.SelectedRow; |
| var colid = row.Column["SupplierID"]; // access by name |
| alert(colid); |
| var col3 = row.Column[2]; // access by index |
| alert(col3); |