Hello,
I’m trying to hide and show columns in a multiheader grid. This is the definition:
mygrid.setHeader("LOCK COLUMN,COLUMN A,#cspan,#cspan,COLUM B,#cspan,COLUMN C,#cspan");
mygrid.attachHeader("#rspan,Cell A-1,#cspan,CELL A-2,CELL B-1,CELL B-2,CELL C-1,CELL C-2");
mygrid.attachHeader("#rspan,Cell A-1-1,Cell A-1-2,Cell A-1-3,Cell B-1-1,#rspan,Cell C-1-1, Cell-2-2");
(....)
mygrid.init();
mygrid.splitAt(1); // lock first column
I tried
mygrid.setColumnHidden(1,true);
but it hides “COLUMN A” cell only, and the header is now corrupted. Some cells in “COLUMN B” move to “COLUMN A”.
Is there a way to hide columns in the low level (Cell A-1-1, Cell A-1-2, Cell A-1-3, B-1-1, C-1-1 or C-1-2), and higher levels auto-calculate new rowspans and colspans?
Thanks you!
I am using DHX pro edition version 3