-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4551958
By: saibal4477
Hi
I am a newbie on ZK.
How can I hide one column (along with all rows) from a grid from the onclick event handler for a button ?
regards
Saibal
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4553244
By: jebberwocky
Dear Saibal
In my knowledge, there is no straight-forward method to call to accomplish it.
As a work-around, y-Grid is good choice. Please refer the smalltalks about this topic. There are plenty of them in http://www.zkoss.org/smalltalks/.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4553358
By: henrichen
try
int col = 1; //0-based, hide 2nd column of the grid int rowsize = grid.getRows().getChildren().size();
for(int row=0; row < rowsize; ++row) {
grid.getCell(row, col).setVisible(false); }
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4553831
By: saibal4477
Thanks to both of you Henri and jebberwocky, I decided to go with y-Grid which suites my pirpose. BTW I am a new developer to ZK and getting surprised with its power and ease of use. Thanks to ZK team...
Asked: 2007-10-04 12:48:56 +0800
Seen: 447 times
Last updated: May 28 '11