:: Forum >>

how to deselect the rows...

i want to deselect rows which are highlighted on their findings...
once it is deselected all rows not coming to their original color ..e.g white-grey alternate...some rows combiningly become grey or white like that ...wht to do to get the original form of row after deselect...

the follwing code is working and deselecting but after deselect problem is that rows template(color combination) not return to its original



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

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

}

}
James
Monday, May 12, 2008

This topic is archived.


Back to support forum

Forum search