anton_ds
18 Jan 2010, 3:33 AM
Hello forum.
I have a question.
I have 1 content panel, and alot of grids on it, but only 1 of them is attached.
For change grid i'm using this procedure:
private void switchGrid(GridView gridView) {
if (gwCurrent != null) {
cpForm.removeAll();
gwCurrent = null;
}
gwCurrent = gridView;
cpForm.add(gwCurrent);
cpForm.layout();
}
And it's work fine, except when I calling cpForm.removeAll(); grid currently Attached on this form, starts load data. how can I remove grid, without load data call??
I have a question.
I have 1 content panel, and alot of grids on it, but only 1 of them is attached.
For change grid i'm using this procedure:
private void switchGrid(GridView gridView) {
if (gwCurrent != null) {
cpForm.removeAll();
gwCurrent = null;
}
gwCurrent = gridView;
cpForm.add(gwCurrent);
cpForm.layout();
}
And it's work fine, except when I calling cpForm.removeAll(); grid currently Attached on this form, starts load data. how can I remove grid, without load data call??