Some problems:

This routine in qx.ui.table.TablePaneScroller

qx.Proto._getColumnForPageX = function(pageX) {
  var headerLeftX =
qx.dom.DomLocation.getClientBoxLeft(this._header.getElement());

  var columnModel = this.getTable().getTableColumnModel();
  var paneModel = this.getTablePaneModel();
  var colCount = paneModel.getColumnCount();
  var currX = headerLeftX;
  for (var x = 0; x < colCount; x++) {
    var col = paneModel.getColumnAtX(x);
    var colWidth = columnModel.getColumnWidth(col);
    currX += colWidth;

    if (pageX < currX) {
      return col;
    }
  }

  return null;
}


fails if the header is hidden, because this._header.getElement()==null,
any workaround?


dperez wrote:
> 
> Thanks Til, it works, your help is very valuable!.  :-)
> 
> 
> Til Schneider wrote:
>> 
>>> Is there any easy way of hiding the header row of a table?
>>> It is for tables with just one column.
>>> I need this for the enhanced version of ComboBox I'm building.
>> 
>> Have you tried table.getPaneScroller(0).getHeader().setDisplay(false) ?
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hiding-header-row-of-a-table-tf2587508.html#a7257868
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to