jQWidgets Forums

jQuery UI Widgets Forums Grid cellsrenderer upon other columns values

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • omargarro
    Participant

    Hi, I have my grid with 5 columns looking just fine.
    I need a sixth column which must display certain values depending on the values of other two columns.
    some pseudo-code for this new column would be something like:
    IF colum3==8 and column4==”A” THEN newColumnValue='<font color=”green”>OK</font>’
    ELSE
    IF column3==8 and column4==”S” THEN newColumnValue=”<font color=”red”>WRONG VALUE!”</font>
    ELSE newColumnValue=””

    Is it possible ? some piece of code would be much appreciated

    thks in adv,


    ivailo
    Participant

    Hi omargarro,

    You can use cellsrenderer about these purposes.

    The way of use is demonstrated in this similar example.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.