jQWidgets Forums

jQuery UI Widgets Forums Grid set cell text

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 9 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • set cell text #84725

    Justintkw
    Participant

    Hi: I saw the getcelltext method, but I don’t see a setcelltext method. Is there a way to change the text of a cell AFTER the grid has already been rendered?

    Specifically, I have a function (lets’ call it function x) that is outside the $(document).ready(function () {} block where the grid is rendered. When function x is run, I would like it to be able to change the text of certain cells within the grid. Not sure how (or if) that can be achieved.

    Thanks.

    set cell text #84732

    Peter Stoev
    Keymaster

    Hi Justintkw,

    You can change values using setcellvalue.

    Best Regards,
    Peter Stoev

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

    set cell text #84825

    Justintkw
    Participant

    This doesn’t do what I want.

    setcellvalue changes the cell value. I don’t want to change the cell value.

    I want to change the rendered text of the cell. And I want to do so after the grid has already been rendered, through some other functions that is triggered later on.

    set cell text #84826

    Peter Stoev
    Keymaster

    Hi Justintkw,

    The rendered text depends on the cell value. Also you can’t change the rendered text after the Grid is rendered.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.