how to change row color using index or row number in jqgrid?
here add ad data to gird from text field. Then we can edit row data. If row column be empty that row will be change its color how to do it?
I got row ids using java code. ie row id= 2,3 is empty. how to change its color using this id's?
jsp grid load code:
<s:url id="mobbillid" action="newmul_mob_gridact" />
<sjg:grid caption="EMPLOYEE MOBILEBILL DETAILS"
gridModel="mobbill_gridModel"
height="200"
href="%{mobbillid}"
id="gridtab"
cellEdit="true"
cellurl="%{mobbillid}"
rownumbers="true"
viewrecords="true"
pager="true"
pagerPosition="center"
navigator="true"
navigatorSearch="true"
navigatorSearchOptions="{multipleSearch:true}"
navigatorDelete="false"
navigatorEdit="false"
loadonce="true"
rowNum="10000"
multiselect="true"
reloadTopics="reloadSearchedClaims"
footerrow="false"
userDataOnFooter="true"
onSelectRowTopics="rowselect"
>
<sjg:gridColumn name="newsin_mob_faname" index="newsin_mob_faname" title="FAcode" width="100" />
<sjg:gridColumn name="newsin_mob_name" index="newsin_mob_name" title="FANAME" width="100" />
<sjg:gridColumn name="newsin_mob_no" index="newsin_mob_no" title="MOBNO" width="100" />
<sjg:gridColumn name="newsin_mob_billno" index="newsin_mob_billno" title="BILLNO" width="40" editoptions="true" editable="true" />
<sjg:gridColumn name="newsin_mob_billamt" index="newsin_mob_billamt" title="BILLAMT" width="90" editable="true" />
<sjg:gridColumn name="newsin_mob_othchrg" index="newsin_mob_othchrg" title="OTHCHRG" width="95" editable="true" />
<sjg:gridColumn name="newsin_mob_psts" index="newsin_mob_psts" title="refid" width="70" align="right" hidden="true"/>
<sjg:gridColumn name="newsin_mob_rmrk" index="newsin_mob_rmrk" title="REMARK" width="75" align="right" editable="true"/>
</sjg:grid>