Tagged: ,

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

    hello again –

    I am trying to read the html that defines a specific cell so i can assign an ID attribute to it.

    Using a filter seems to yield inaccurate results for me:

      'template' :
    ( (thisRow) => thisRow.cell.element.firstChild.setAttribute('id', myNewCellId) ;
    

    it works for the second time through, but the first time the row appears to be off by one.

    is there some way to access a specific cell to assign an ID value?  i am looking for something very similar to this:
    document.querySelector('smart-grid').getCellValue(0,'firstName' ) ;
    but something to return the actual HTML and not just the value.

    in other words:  https://www.htmlelements.com/forums/topic/using-selectcells-method/

    for example: how would i add an ID attribute to the second row of the firstName column?

    thank you very much.

    #109007
    Markov
    Keymaster

    Hi,

    You can look at https://www.htmlelements.com/docs/grid-cell-templates/ to see how to use html with grid cells.

    Regards,
    Markov

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

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