jQWidgets Forums

jQuery UI Widgets Forums Grid How to set cell border color and tooltip

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

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

  • damc
    Participant

    Hi!

    I would like to set cell border color and tooltip for one cell depending on the value of another cell (e.g. if cell2 value=2 then cell1 border is red and title=”2″ – equal cell2 value.)

    Thank you for your help.


    damc
    Participant

    Hi.

    I still have the problem with setting grid cell border color and title depending on the value of another cell.

    Can you help me?


    Peter Stoev
    Keymaster

    Hi damc,

    You can customize the rendering of a Grid cell by using a custom cells rendering function associated to a column. The returned HTML can contain a custom title(tooltip), too. The Grid passes by default the row’s index, column and cell value. You should return the HTML that will be rendered. If you have a cell dependent on other cell, you can use the Grid’s getrowdata method to get all cells in a row. The method accepts as a param the row’s index. To see how to handle custom cells rendering, take a look at this help topic: jquery-grid-cellsrendering.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.