Я пытаюсь получить выбранные строки сетки значение KeyField на стороне клиента;
Раньше я пытался отслеживать и получать различные результаты:
Метод # 1
<ClientSideEvents RowClick="function(s, e) {var key= grid.GetSelectedKeysOnPage()[0];}" />
//This gives previous selected rows value everytime
Метод # 2
<ClientSideEvents RowClick="function(s, e) { grid.GetRowValues(grid.GetFocusedRowIndex(), 'MyKeyFieldName', OnGetRowValues); }" />
//This gives previous selected row and also gives an error: "A primary key field specified via the KeyFieldName property is not found in the underlying data source. Make sure.. blabla" But the MyKeyFieldName is true and i dont want to make a callback, i dont want to use this method!
Метод # 3
<ClientSideEvents RowClick="function(s, e) { grid.GetRowValues(e.visibleIndex, 'MyKeyFieldName', OnGetRowValues); }">
//This gives the same result with Method #2
Возникает вопрос: как я могу получить значение KeyField Value (не предыдущей, но) текущей выбранной строки в событии RowClick клиента без обратного вызова или обратной передачи?