This demo dynamically displays detailed information for the selected row outside the MVC Grid View. The FocusedRowChanged client event is handled via the OnGridFocusedRowChanged() JavaScript function. This function queries the server by using the Grid View's GetRowValues client method, to return the current employee's ID and Notes. The returned array is passed to the OnGetRowValues() JavaScript function, that assigns the obtained values to corresponding controls (DevExpress Image and Memo Editors).
To enable the capabilities of Focused Row, set the SettingsBehavior.AllowFocusedRow property to true. Appearance of the Focused Row can be specified using the Styles.FocusedRow property.
End-users can move row focus by clicking the desired row. To respond to a change in row selection, handle the FocusedRowChanged client event. To identify the currently focused row, use the GetFocusedRowIndex client method.
See Also:
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos |