Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 18, 2007 14:58
open dhtmlx forum
Q) When we make some rows hidden, then we still see those in the printPreview of the grid. Is there a way to avoid seeing the hidden rows in preview? Q) Can cntr(counter) and ch(checkbox) in each row come in single column? Q) Is there any we can set label of newly attached header? Q) Can attached headers column have separate click event as main headers? Q) In our application we need checkboxes in each column’s header, but as user checked it the grid gets sorted. But we need that sorting when user clicks on header column and not while clicking in checkbox.


Answer posted on May 18, 2007 18:14
Q) When we make some rows hidden, then we still see those in the printPreview of the grid. Is there a way to avoid seeing the hidden rows in preview?
A) The printPreview in current version shows all data from grid, including hidden rows, we plan to update functionality in oncoming build

Q) Can cntr(counter) and ch(checkbox) in each row come in single column?
A) There is no way to merge functionality of existing excell, such behaviour can be accomplished only by creating custom exCell

Q) Is there any we can set label of newly attached header?
A) The grid doesn't provide API to access cells of header, but you can create a header with named container in it
    grid.attachHeader("<div id='c1'></div>,B,C");
....
document.getElementById('c1').innerHTML="A";

Q) Can attached headers column have separate click event as main headers?
A) All functionality which works by default for main header line, work for others in same manner. In case of custom events, the onHeaderClick event contains info about rowIndex in which click occurs, so you can customize reaction.

Q) In our application we need checkboxes in each column’s header, but as user checked it the grid gets sorted. But we need that sorting when user clicks on header column and not while clicking in checkbox.
A) the grid header threat values as HTML , so there is no problem with adding checkboxes in them. To prevent sorting, you just need to stop event propaganation, something to next

    var astr="A<input type='checkbox' onclick='(arguments[0]||event).cancelBubble=true; return true; '>";
    grid.setHeader(astr);
Answer posted by Alexandra (Support) on Nov 29, 2014 04:37

The information connected with ajax events and date picker calendar javascript also can help you, so please check it too.