당신이 바로 당신이 처음 아니다 사람이 질문을하는 사람들. 내가 the demo
0123을 만든 셀 색상으로 상황을 지우려면셀의 텍스트 색상 또는 다른 방법으로 판매의 배경 색상 변경 당신을 위해
:
loadComplete: function() {
// 2 is zero-base index of the column 'name' ('Client'). Every from the options
// multiselect:true, rownumbers:true and subGrid:true will increase
// the index by 1 because the option inserts additional columns
$("#6 td:eq(2)", grid[0]).css({color:'red'});
grid.jqGrid('setCell',"12","name","",{color:'red'});
grid.jqGrid('setCell',"10",'name', '', 'my-highlight');
grid.jqGrid('setCell',"8",'name', '', 'ui-state-error ui-state-error-text');
grid.jqGrid('setCell',"4","name","",{'background-color':'yellow',
'background-image':'none'});
grid.jqGrid('setCell',"3","name","",'ui-state-highlight');
}
<style type="text/css">
.my-highlight { color: red; }
</style>
및 "3", "를 4 ","6 ","8 ","10 "및"12 "는 해당 열의 색이 변경되는 행의 rowid입니다.
그건 그렇고 내 개인 즐겨 찾기는 jQuery UI Themes의 일부인 'ui-state-highlight'또는 'ui-state-error ui-state-error-text'클래스를 사용하는 방법입니다.
업데이트 :
: 같은 테이블 위와 같이 다음과 같이 어디 one more demo 사용 라 개구리 테마를 추가 다른 jQuery를 UI 테마의 사용의 경우에는 다른 방법의 사용의 차이를 이해하기
내가 함께 대신 전에 하나의 'UI 상태 오류 텍스트'의 두 스타일 'UI 상태-오류 UI 상태 오류 텍스트'를 사용하는 것이 내 대답은 약간의 업데이트. – Oleg
jqgrid의 추가/수정 양식에 대한 CSS를 변경하려면 어떻게해야합니까? –