[Fwd: Re: [Qooxdoo-devel] QxListView updateable?]
Brought to you by:
ecker,
martinwittemann
From: Christian B. (B. Development) <in...@bi...> - 2005-07-31 07:39:18
|
Georg Kafka wrote: > Hi, > > i've got some questions for the QxListView: > > 1. is there any possibility to add rows to the QxListView after adding > the widget to its parent? > QxListView.addData({...}) doesn't take any efect, even though the > QxListView._data array adds the new hash. > > 2. how can rows/cells be updated - i dint find any method an the > storage (QxListView._data) is private - isn't it? I do it this way (ugly hack): updateRow = function ( rowNo ) { rowNo = new Number(rowNo); var rows = [name of QxListView instance].getElement().getElementsByTagName("tr"); var r = rows[rowNo+6]; // for some reason, one has to add 6 rows var c = r.getElementsByTagName("td"); for ( var i=0; i< c.length; i++ ){ if ( c[i] ) c[i].firstChild.innerHTML = [Whatever updated data you want to insert]; } } Christian |