Search code examples
tablecellrendererqooxdoo

HTML Cellrenderer Bug


i am trying to set Rich Text in a Table after an Event. The Problem is, that the HTML Tags are only recognized after i clicked on the Header or resize the Table. I did a little Playground Example After clicking Button the data is loaded with HTML Tags.


Solution

  • You could set the cell renderer before to load the data :

    var table = new qx.ui.table.Table(null);
    
    button1.addListener("execute", function(e) {
    
        var tableColumnModel = table.getTableColumnModel();
        tableColumnModel.setDataCellRenderer(0, new qx.ui.table.cellrenderer.Html());
    
        tableModel.setData([["<b>test</b>"],["<i>test</i>"]]);
    });
    

    Here is the full playground example.