Focused Row

Solar system objects:
 
Name Type Mass, 1021 × kg
Sun
Star 1,989,100,000.00
 
 
Mercury
Planet 330.20
 
 
Venus
Planet 4,868.50
 
Earth
Planet 5,973.60
 
 
 
Moon
Satellite 73.50
 
 
Mars
Planet 641.85
 
Jupiter
Planet 1,898,600.00
 
 
 
Ganymede
Satellite 148.20
 
 
 
Callisto
Satellite 107.60
 
 
 
Io
Satellite 89.30
 
 
 
Europa
Satellite 48.00
 
Saturn
Planet 568,460.00
 
 
 
Titan
Satellite 134.50
 
 
 
Rhea
Satellite 2.32
 
 
 
Iapetus
Satellite 1.97
 
 
 
Dione
Satellite 1.10
 
 
 
Tethys
Satellite 0.62
 
 
 
Enceladus
Satellite 0.11
 
 
 
Mimas
Satellite 0.04
 
Uranus
Planet 86,832.00
 
 
 
Titania
Satellite 3.53
 
 
 
Oberon
Satellite 3.01
 
 
 
Umbriel
Satellite 1.20
 
 
 
Ariel
Satellite 1.35
 
 
 
Miranda
Satellite 0.07
 
Neptune
Planet 102,430.00
 
 
 
Triton
Satellite 21.50
 
 
 
Proteus
Satellite 0.05
 
 
Eris
Dwarf planet 16.70
 
 
Pluto
Dwarf planet 13.11
 
 
Makemake
Dwarf planet 3.00
 
 
Haumea
Dwarf planet 4.01
 
 
Ceres
Dwarf planet 0.95
 
 
Pallas
Asteroid 0.21
 
 
Vesta
Asteroid 0.26
Data grid with 35 rows and 3 columns
Focused object:
  • Sun
    • Radius: 696,000.00 km
    • Density: 1.41 g/cm3
    • Gravity: 274.00 m/s2

To focus individual rows in the DevExpress Blazor TreeList, simply set the FocusedRowEnabled property to true . Note: Only one row can be focused at a time within the current page. When a page changes, the row loses focus.

Focus moves in response to the following actions:

  • Users click a row with a pointing device.
  • A data row switches to edit mode.
  • Users navigate between rows with a keyboard. In this instance, the focused row follows the client's focus asynchronously to minimize delays.
  • The TreeList loads data for the first time.
  • Visible rows change (for instance, when a user sorts data or changes a page).
  • The SetFocusedRowIndex method is called.

You can use the following methods to manage the focused row.

When a focused row changes, the TreeList raises its FocusedRowChanged event. In this demo, the FocusedRowChanged event handler obtains the data item bound to the focused row and displays item information next to the TreeList.