jQWidgets Forums

jQuery UI Widgets Forums Grid Add Class cellsrenderer

This topic contains 2 replies, has 2 voices, and was last updated by  kxtruong 10 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Add Class cellsrenderer #67692

    kxtruong
    Participant

    I was wondering if there was a way to add a class to a cell? I know we can do this through cellsrenderer.

    However I was wondering if there was a way to programmatically tell it to call cellsrenderer on a particular cell.

    For example I’m implementing a find toolbar in the grid and I want to add a class to the cell that was found and remove the class in the previous found term. I know that I can call refresh on the grid but I don’t want it to call cellsrenderer on every cell again which I think might impact performance? So I’m wondering if there is a better way to do this.

    Thanks!
    Kenneth

    Add Class cellsrenderer #67700

    Dimitar
    Participant

    Hello Kenneth,

    Actually, the easier way to add a class to a cell is through cellclassname (demo). Unfortunately, it cannot be called programmatically and you would have to call refresh to invoke it. It is called for all visible cells, not all loaded cells, so performance should not be hindered.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Add Class cellsrenderer #67724

    kxtruong
    Participant

    Hi Dimitar I’ll do that instead. Thanks for the reply!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.