datatable row position

hi, i have a datatable with many records , how do I scroll to a certain element ? I tried with this.getIdByIndex , this.showItem but do not seem to stand in the desired record .
Thank you

Hi,

The showItem method works as expected:

http://webix.com/snippet/794520f0

Also, you can use:

  1. showItemByIndex:
    http://webix.com/snippet/808b256e

  2. scrollTo function:
    http://webix.com/snippet/4927a557

Thanks for the reply .
My problem , as I have told you in other posts , is that I want to position myself according to my " IdUser " database .
Do I have to use the key " id " ?

Yes. If you only load your data (within modifying and sending to the server), you can use a custom datatype and specify the ID field. In case of data exchange, you need to specify the ID on your server side. It’s necessary parameter. Otherwise, it will be generated automatically during data loading.

thanks Listopad!

listopad i use this code
ready:function(){
this.showItem(99);
this.select(99);
},
but datatable not scroll :frowning:

if I do the click of a button test your code works , but no event ready function

only select work, but not scroll datatable