I'll try to keep this simple. I've got my own ColumnModel and added a method
for adding a new column. I couldn't just extend the current one because I
needed access to the internal data arrays. Using the visible/hidden thing
isn't really good enough in my case. We've got tons of columns. Anyway, it
wasn't a big deal. I just splice the internal arrays, fire the events and
everything works great. I had been using custom data cell reneders and using
the defaults for header renderer and editing.

Now, the problem I'm having is when specifying an Icon header cell renderer.
During the creation of the Image and applying its source in HeaderCell I get
an error because this.getContentElement() in the Image is still undefined.
It's line 227 in ui.basic.Image. The _styleSource method and I'm using 0.82.
Style source seems to get called a number of times, if I simply add a check
for undefined and return it works. Am I doing something really crazy or is
this just a minor bug? Just to reiterate what I'm doing. In a table that's
already created and displayed. I'm adding a column basically like this in my
ColumnModel:

var map = {
  width: 50, 
  dataRenderer: customDataRenderer, 
  headerRenderer: new qx.ui.table.headerrenderer.Icon("/iconpath");
}

this.__columnDataArr.splice(modelPos, 0, map);
this.__overallColumnArr.splice(visPos, 0, modelPos);
this.__visibleColumnArr.splice(visPos, 0, modelPos);

// invalidate visibility map
this.__colToXPosMap = null;
this.fireDataEvent("orderChanged", data);
this.fireDataEvent("visibilityChangedPre", visData);
this.fireDataEvent("visibilityChanged", visData);
-- 
View this message in context: 
http://www.nabble.com/Table-HeaderCell-with-Icon-problem-question-tp24481924p24481924.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to