:: Forum >>

after deselecting the rows ...some consecutive rows getting grey colored

i used some code to highlight the found rows..this method is used to clear the highlighted rows...clear button is working good but after deselect some cosecutive rows getting grey color....wht to do??


function clearFindStock(){
document.getElementById("stockInput").value="";
var changeflag=1;
/*alert('UnSelect');*/
for(i = 0; i < top.myRowCount; i++){
if(top.myData[i][2] != '&nbsp;'){
changeflag++;
if((changeflag%2)==1){
top.screens.stockList.obj.getRowTemplate(i).setStyle("background-color", "#EFEFEF;");
}
else{
top.screens.stockList.obj.getRowTemplate(i).setStyle("background-color", "#fff;");
}

top.screens.stockList.obj.getRowTemplate(i).refresh();
}

}
James
Monday, May 12, 2008

This topic is archived.


Back to support forum

Forum search