Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can "bring colors" in your grid with respect of <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods" rel="nofollow noreferrer">setCell</a> method of jqGrid (see <a href="https://stackoverflow.com/questions/2874906/jqgrid-setcell-method-how-to-set-class-of-the-fourth-parameter/2875219#2875219">this answer</a> as an example) or <code>jQuery.addClass</code>, <code>jQuery.css</code> (see <a href="https://stackoverflow.com/questions/4028019/set-class-or-identifier-on-jqgrid-row-based-on-a-key-value-pair-placed-in-row-li/4028235#4028235">this</a> and <a href="https://stackoverflow.com/questions/3025305/jqgrid-firefox-and-css-text-decoration-problem/3026421#3026421">this</a>). You should do this <strong>after</strong> the grid contain is loaded, for example, inside of your <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events#list_of_events" rel="nofollow noreferrer">loadComplete</a> event handler.</p> <p>If you want set <code>background-color</code> style on the cell you should understand one small problem. The class <code>'ui-widget-content'</code> used for every grid row already defines the <code>background-color</code> per <code>background</code> style (!!! not per <code>background-color</code>). So to have effects you should make changes of the <code>background-color</code> style in <strong>one</strong> from the following ways: 1) just use <code>background: yellow</code> instead of <code>background-color: yellow</code> (see <a href="https://stackoverflow.com/questions/4069471/jqgrid-setting-to-colums-cells-bg-color-when-clicked-columnheader/4070790#4070790">this</a>). 2) remove 'ui-widget-content' class with <code>jQuery.removeClass('ui-widget-content')</code> (see <a href="https://stackoverflow.com/questions/2931732/jqgrid-coloring-an-entire-line-in-grid-based-upon-a-cells-value/2936673#2936673">this</a>); 3) change style of the row more explicit like <code>$("#"+rowid)[0].style.backgroundColor = "yellow"</code> (see <a href="https://stackoverflow.com/questions/4065197/jqgrid-is-it-possible-to-change-the-background-color-of-html-header-text-in-jav/">this</a> as an example). Choose the ways which you prefer.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload