I’ve added an afterInit element to the tag of my XML to select the first row of the grid, but it isn’t working. Do I have something incorrect?
<?xml version="1.0" encoding="UTF-8" ?>
1
false
true
true
1
etc…
The order of XML processing
a) commands from beforeInit executed
b) configuration from head\column initialized
c) commands from afterInit executed
d) data part of grid loaded
In your case the command executed in moment when no data loaded yet, as result - nothing selected in grid.
If you need just to select row , you can use selected attribute of “row” tag.
<row id=“1” selected=“true”> …