Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alee
Hello, Yes, IMHO these are very frequent operations to any grid like structure. I dont know where to write those .. so writing them in this post. qx.Proto.addRow = function(newRow) { this._rowArr.push(newRow); var rowArr = this._rowArr; if (this.hasEventL

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alex D.
I don't think it is necessary to add this functionality to the class: addRow, DeleteRow, RemoveRow, updateRow etc. are normal array manipulations. If you want to keep your code clean just make a couple of functions to manipulate your data-array. And setValue, getValue functions are already exis

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread dperez
Hi Alee, Maybe it would be interesting to add this functionality to SimpleTableModel, because nearly every user of this class needs to add/edit/modify data. Alee wrote: > > This solved the problem, but the thing is table will be having many rows > and there are 4-5 tables in a tab view, so don

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alee
Hello Alex D., Thanks. This solved the problem, but the thing is table will be having many rows and there are 4-5 tables in a tab view, so dont you think this will turn down performance. Also, I have subclassed the SimpleTableModel, because I also added few more methods like .. addRow, DeleteRo

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alex D.
Hmm..., I really don't see any necessity for you to override SimpleTableModel class. You can use:     rowData.push("new row of my data");      tableModel.setData(rowData); in your application with the same result. Mail if it doesn't work. Cheers, alex.d Hello, I have subclasses SimpleTabl

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alee
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;

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alex D.
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 tab

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alee
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: >

Re: [qooxdoo-devel] Table UI Updation Problem

2006-08-28 Thread Alex D.
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 faci