dataSourceGrid.setRowHidden(i,true);

function dataSourcePopupHandler(id) {

alert(“the id inside the dataSourcePopupHandler is ---->”+id);

     doInitDataSourceGrid();

     alert(“the id after the dataSourceGrid initialization is ---->”+id);

     for(var i=0; i<dataSourceGrid.getRowsNum(); i++){

         if(id != i){

            dataSourceGrid.setRowHidden(i,true);

        }else{



dataSourceGrid.setRowHidden(id,false);

        }

     }





The above function gets called on click of a particular button .The id is passes to the function .I just want to display the rows which containt the id .However once the row is set Hidded to false it remains false inspite of setting it to true and shows up on the second call to the function .

To display rows which contain id better to use filtration:

function dataSourcePopupHandler(id) {


alert(“the id inside the dataSourcePopupHandler is ---->”+id);
doInitDataSourceGrid();
alert(“the id after the dataSourceGrid initialization is ---->”+id);
dataSourceGrid.filterBy(INDEX,id,true);
}

Please see more information here dhtmlx.com/docs/products/dht … grid_fsing