-
FEATURED COMPONENTS
First time here? Check out the FAQ!
When I click a button to add a row in ZK Spreadsheet, the div element after the ZKID-cave element isn't adjusting the size to the contents.
<div id="fS6Q0-cave" class="z-window-embedded-cnt-noborder">
<div id="fS6Q1" style="width: 100%; height: 204px;"> <-- not changing
I don't know why it isn't doing this automatically on row insert. Some of my code
private Spreadsheet zkSSheet;
...
addRowButton.addEventListener("onClick", new EventListener() {
public void onEvent(Event event) throws Exception {
editPlanningWBSGrid.insertRow(phId, actId, eleId, comId, comments);
//editPlanningWBSGrid.Events.sendEvent(reload, event);
//setCellColor();
editPlanningWBSGrid.loadUIGrid(zkSSheet);
// System.out.println("editPlanningWBSGrid: "+editPlanningWBSGrid);
zkSSheet.invalidate();
}
});
The invalidate doesn't help in any way, so what I end up having to do is send the reload event which calls a Javascript function that refreshes the page. This for obvious reasons feels cumbersome to the end users. Any solution to this? Am I missing a critical piece of knowledge?
Asked: 2013-06-07 19:39:16 +0800
Seen: 5 times
Last updated: Jun 07 '13