How to select in Datatable the 1-st row onAfterLoad event?
Tried “getFirstId()”, does not seems to work.
http://webix.com/snippet/37ae7199
I tried it locally, the following code works:
var id = this.getFirstId();
this.select(id);
webix.message("First is "+id);
Don’t know why, but it does not work, fails on
this.select(id);
http://webix.com/snippet/150674c0
Btw, how do you highlight javascript syntax?
Highlighting
//js code<br>
Thank you.
Re: http://webix.com/snippet/150674c0, is this something on my side?
Missed a vital thing in your configuration. You should have enabled selection for the datatable:
<datatable id="datatable" select="row" />
That fixed the issue. Thank you.