PDA

View Full Version : I want to show portal with two columns, how can i do that



vijaypatil12
19 Oct 2011, 1:36 AM
right now there is 3 columns, But I want to show only 2 colums
code is as below
Portal mainCenterPortal = new Portal(3);

private Widget getUserPortlate() {
nqmsReportView.getMainCenterPortal().setBorders(false);
nqmsReportView.getMainCenterPortal().setStyleAttribute("backgroundColor", "white");
nqmsReportView.getMainCenterPortal().setColumnWidth(0, .33);
nqmsReportView.getMainCenterPortal().setColumnWidth(1, .33);
nqmsReportView.getMainCenterPortal().setColumnWidth(2, .33);
nqmsReportView.getMainCenterPortal().setAutoScroll(true);

return nqmsReportView.getMainCenterPortal();
}

micgala
19 Oct 2011, 7:06 AM
Really??

How about


Portal mainCenterPortal = new Portal(2);

private Widget getUserPortlate() {
nqmsReportView.getMainCenterPortal().setBorders(false);
nqmsReportView.getMainCenterPortal().setStyleAttribute("backgroundColor", "white");
nqmsReportView.getMainCenterPortal().setColumnWidth(0, .33);
nqmsReportView.getMainCenterPortal().setColumnWidth(1, .33);
//nqmsReportView.getMainCenterPortal().setColumnWidth(2, .33);
nqmsReportView.getMainCenterPortal().setAutoScroll(true);

return nqmsReportView.getMainCenterPortal();
}