Hello,
I have subclasses SimpleTableModel and added the following function
qx.Proto.addRow = function(newRow) {
this._rowArr.push(newRow);
if
(this.hasEventListeners(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED))
{
var len = this._rowArr.length;
var lastColumn = this._rowArr[0] ? this._rowArr[0].length : 0;
var data = { firstRow:len-1, lastRow:len-1, firstColumn:0,
lastColumn:lastColumn };
this.dispatchEvent(new
qx.event.type.DataEvent(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED,
newRow), true);
}
this._clearSorting();
};
Now, even if the table has only 1 row, it doesnt updates its UI. but if I
hover the mouse on the row (where currently is no row, although there should
be), the row appears. I have called the length which reports the correct
(modified) result. Means the row is added successfully but isnt showing.
This also happens when I call tableModel.setValue(...) .. which sometimes is
updated automatically but sometimes it just doesnt. Have to resize a browser
and then it's updated.
Thanks,
Alee.
alex.d wrote:
>
> Hi,
> that works fine for me. How exact do you add your data to the table?
>
> table._updateScrollBarVisibility() is only for vertical Scrollbar to
> appear(will hopefully not be necessary in the later versions).
>
> Cheers,
> alex.d
>> Hello alex.d,
>>
>> Thanks for you reply. It doesn’t seem to work. I put
>> table._updateScrollBarVisibility(); right after the call to add the data
>> but
>> still it doesn't update the UI.
>>
>> Alee.
>>
>>
>> alex.d wrote:
>>
>>> Hi Alee,
>>>
>>> after you add the data to your data array(rowData) make following:
>>> tableModel.setData(rowData);
>>> table._updateScrollBarVisibility();
>>> should work.
>>>
>>> Cheers,
>>> alex.d
>>>
>>>> Hello,
>>>>
>>>> I've added some methods to add, delete, remove a row from the table.
>>>> The
>>>> problem I'm facing is table doesn't update its UI .. when I bring the
>>>> cursor
>>>> on the row where a new row should be added, then the row is displayed,
>>>> (or
>>>> by re-sizing the browser).
>>>>
>>>> I have tried calling qx.ui.core.Widget.flushGlobalDisplayQueue() after
>>>> the
>>>> updation but it didnt work. Any help?
>>>>
>>>> Thanks,
>>>> Alee.
>>>>
>>>>
>>> -------------------------------------------------------------------------
>>> 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
>>>
>>>
>>>
>>
>>
>
>
> -------------------------------------------------------------------------
> 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
>
>
--
View this message in context:
http://www.nabble.com/Table-UI-Updation-Problem-tf2175737.html#a6017126
Sent from the qooxdoo-devel forum 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