KeyTable key-focus event and column name

KeyTable key-focus event and column name

msand01msand01 Posts: 54Questions: 24Answers: 1

With the key-focus event, is it possible to determine if a particular column was clicked, via the data name property, as opposed to the index. I am using Objects as my data source.

For example, in the event body, I can do this
if (cell.index().column === 1)
to get the index of the column, but is it possible to do a comparison with the name instead, something like this?
(I realize this is wrong)
if (cell.name === 'Age')

Thank you in advance.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,485Questions: 1Answers: 10,467 Site admin
    Answer ✓

    There actually isn't at the moment I'm afraid... You can set a name for a column using columns.name, but currently the only way that can actually be used is with a column selector. There isn't currently an API method that will let us get / set a column name.

    I've added to the list to add now though!

    Allan

  • Mazhar123Mazhar123 Posts: 17Questions: 4Answers: 0

    Hi @allan ,

    Is this feature available now ?

    Regards,
    Mazhar

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @Mazhar123 ,

    No, it's still in the backlog, I'm afraid.

    Cheers,

    Colin

  • Mazhar123Mazhar123 Posts: 17Questions: 4Answers: 0

    Ok @colin ,

    Thanks for the update.

    Regards,
    Mazhar

This discussion has been closed.