grid.setScrollBars('none') ignored
Hi Alex,
In http://foxincloud.com/tutotest/bs/report.tuto,
- the left grid (id="report_scx-grdcustomer") has no scroll bar setting
- the right grid (id="report_scx-grdorders") has
When setting a break point after the HTML of both grids is built (on line 548 of http://foxincloud.com/tutotest/bs/report_scx.js), you can see:
- left grid has both scroll bars
- right grid has no scroll bar
At this point the scroll bar settings are respected.
However, if you resume execution, after the grids are filled with data, the right grid gets 'automatic' scroll bars (depending on content width and height).
I have tried to restore the scrollBars in the AJAX response callback without success:
what else can we do?
thanks
In http://foxincloud.com/tutotest/bs/report.tuto,
- the left grid (id="report_scx-grdcustomer") has no scroll bar setting
- the right grid (id="report_scx-grdorders") has
grid.setScrollBars('none');
as can be seen in its JavaScript (http://foxincloud.com/tutotest/bs/report_scx.js, line 197)
When setting a break point after the HTML of both grids is built (on line 548 of http://foxincloud.com/tutotest/bs/report_scx.js), you can see:
- left grid has both scroll bars
- right grid has no scroll bar
At this point the scroll bar settings are respected.
However, if you resume execution, after the grids are filled with data, the right grid gets 'automatic' scroll bars (depending on content width and height).
I have tried to restore the scrollBars in the AJAX response callback without success:
oTable = new AW.XML.Table;
oGrid.setCellModel(oTable);
oGrid.setVirtualMode(false);
oTable.setURL("../Temp/report_scx-grdorders.xml");
oTable.setAsync(true);
oTable.response = new Function('xml', "this.setXML(xml);var grid = this.$owner;if (grid) {var rowHeight = grid.getRowHeight();var scrollBars = grid.getScrollBars();grid.clearScrollModel();grid.clearSelectedModel();grid.clearSortModel();grid.clearRowModel();grid.setRowHeight(rowHeight);grid.setRowCount(this.getCount());grid.refresh();grid.setScrollBars(scrollBars);}")
oTable.request();
what else can we do?
thanks
ve
April 5,