Focused Row

Solar system objects:
 
NameTypeMass, 1021 × kg
Sun
Star1,989,100,000.00
 
 
Mercury
Planet330.20
 
 
Venus
Planet4,868.50
 
Earth
Planet5,973.60
 
 
 
Moon
Satellite73.50
 
 
Mars
Planet641.85
 
Jupiter
Planet1,898,600.00
 
 
 
Ganymede
Satellite148.20
 
 
 
Callisto
Satellite107.60
 
 
 
Io
Satellite89.30
 
 
 
Europa
Satellite48.00
 
Saturn
Planet568,460.00
 
 
 
Titan
Satellite134.50
 
 
 
Rhea
Satellite2.32
 
 
 
Iapetus
Satellite1.97
 
 
 
Dione
Satellite1.10
 
 
 
Tethys
Satellite0.62
 
 
 
Enceladus
Satellite0.11
 
 
 
Mimas
Satellite0.04
 
Uranus
Planet86,832.00
 
 
 
Titania
Satellite3.53
 
 
 
Oberon
Satellite3.01
 
 
 
Umbriel
Satellite1.20
 
 
 
Ariel
Satellite1.35
 
 
 
Miranda
Satellite0.07
 
Neptune
Planet102,430.00
 
 
 
Triton
Satellite21.50
 
 
 
Proteus
Satellite0.05
 
 
Eris
Dwarf planet16.70
 
 
Pluto
Dwarf planet13.11
 
 
Makemake
Dwarf planet3.00
 
 
Haumea
Dwarf planet4.01
 
 
Ceres
Dwarf planet0.95
 
 
Pallas
Asteroid0.21
 
 
Vesta
Asteroid0.26
Data grid with 35 rows and 3 columns
0 rows are selected
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.