Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 19, 2009 08:12
open dhtmlx forum
dhtmlxgrid pagingBar checkAll issue

hi,

I am using dhtmlxgrid 2.1 version with pagingBar and there is an option where user can do checkAll / uncheckAll

function bulkRowProcessInd(){
        if(document.searchWin.CheckState.checked)
            SearchGrd.checkAll();
        else
            SearchGrd.checkAll(0);
}


but my question only active page check boxes only checked and rest of the pages are not checked even when i say GridName.checkAll(),

Do i need to use different signature when i use Grid with PagingBar.
Answer posted by Support on May 19, 2009 08:39
The command affect all rendered rows only. 
To process all rows, add next line before command

function bulkRowProcessInd(){ 
   for (var i=0; i<SearchGrd.getRowsNum(); i++) SearchGrd.render_row(i); //prerender all rows in grid
 
  if(document.searchWin.CheckState.checked) 
  SearchGrd.checkAll(); 
  else 
  SearchGrd.checkAll(0); 
}

Beware that in case of dyn. loading, only rows, which was loaded to client side, will be updated.
Answer posted on May 19, 2009 09:56
Appreciate for quick reply. Working  fine