It is possible use .focus() in datatable?

I would like focus a row when check the checkbox positioned in the row.
I tried use the propiety, but it didn´t work.
It´s possible make this with another propiety?

Comments

  • Hello @CesarCTA ,

    It´s possible make this with another propiety?

    As a solution, you can use onCheck event and select/unselect row:

      on:{
        onCheck: function(row, column, state) {
          state? this.select(row, 1):this.unselect(row);
        }
    

    Please take a look at the snippet:
    https://snippet.webix.com/o0o61t35

  • edited October 2020

    Thank you!
    Just I have a question.
    Finaly I could make it using the state parameter of the function and propiety(I don´t sure if is a propiety) this.select(). Justn i don´t undesrtand the intention why you used this:

    onBeforeUnselect(obj) {
    return !obj.column;
    }

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!