Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #108993
    edwardsmarkff
    Participant

    greetings –

    perhaps i dont understand how selectCells should work.

    should getCellValue and selectCells work similar?

    https://codepen.io/edwardsmarkf/pen/KKbjddB

    document.querySelector('smart-grid').getCellValue(0,'firstName' ) ;       // works perfectly
    document.querySelector('smart-grid').selectCells([0],['firstName'] ) ) ;  // does not return anything, undefined
    

    from documentation:
    >   getCellValue( rowId: string | number, dataField: string): any
    >   selectCells( rowIds: (string | number)[], dataFields: string[]): void

     

     

    #108998
    ivanpeevski
    Participant

    Hi,

     

    The “selectCells” method as the name suggests simply selects the given cells. The reason you don’t see the result in your code is because selection is not enable.

    You can test your code with cell selection enabled and see the result.

     

    Best Regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.