In the RadControls for ASP.NET version, I was able to select a row when a user right clicked for a context menu using the ClientEvents OnRowContextMenu event:
I was also able to get the row index of the selected row using:
I assumed that the following was the equivalent for Prometheus:
But that doesn't seem to work and the documentation online does not have a valid page for this property/method.
How can I achieve these 2 things?
Seth
| function CabinetRowContextMenu(index, e) | |
| { | |
| document.getElementById("radGridClickedRowIndex").value = index; | |
| var menu = <%= rmCabinets.ClientID %>; | |
| menu.Show(e); | |
| e.cancelBubble = true; | |
| e.returnValue = false; | |
| if (e.stopPropagation) | |
| { | |
| e.stopPropagation(); | |
| e.preventDefault(); | |
| } | |
| this.SelectRow(this.Rows[index].Control, true); | |
| } | |
I was also able to get the row index of the selected row using:
| rgItemCategories.MasterTableView.SelectedRows[0].Index |
I assumed that the following was the equivalent for Prometheus:
| var rgCabinets = $find("<%= rgCabinets.MasterTableView.ClientID %>"); | |
| var selectedItems = rgCabinets.get_selectedItems(); | |
| selectedItems[0].get_index(); |
But that doesn't seem to work and the documentation online does not have a valid page for this property/method.
How can I achieve these 2 things?
Seth