Thanks Jim, that solved the problem. What was the another change you thought of, if this didn't work.
Thanks, RObust For starters, when iterating through an array where you are going to be deleting members, always start at the end and move forward. As soon as you delete a row from an array, the structure of the array changes and what you think you are deleting my not be true. So first, try and start from the end and move forward. I suspect that will fix your issue. If that doesn't work, let me know, I have another change to your code in mind. Jim On Wed, Mar 25, 2009 at 12:11 PM, robust <[email protected]> wrote: > > Hello Jim, > > My code looks like this, > for (var rowCount = 0; rowCount < this.__rows.length; rowCount++) { > this._tableModel.removeRows(this.__rows[rowCount], 1); > } > let me know if you need anything else > > Thanks, > Robust > > Without seeing your code I have no idea why it's not doing what you want. > Provide the code that is manipulating the data and I will see if I can spot > your issue. > Jim > > > On Tue, Mar 24, 2009 at 1:31 PM, robust <[email protected]> wrote: > > > > > Jim, > > > > its not working as expected. WHen I used the updateContent after removing > > the two rows, its only removing one row, the other row is still shown. > > let me know where I am doing wrong. > > > > thanks, > > robust > > > > After you make the change to the datamodel, call updateContent() on the > > table. This is re-sync your UI with your data. > > Jim > > > > > > > > On Tue, Mar 24, 2009 at 11:52 AM, robust <[email protected]> > > wrote: > > > > > > > > Hello, > > > > > > I am just trying to remove few rows from the table. As expected, the > rows > > > are removed from the tableModel. But, the rows are still seen on the > UI. > > > Though they are seen I cannot make any action against them. > > > > > > How to remove the rows from the UI too? > > > > > > Thanks, > > > Robust > > > -- > > > View this message in context: > > > http://n2.nabble.com/Removing-rows-from-a-table-tp2528366p2528366.html > > > Sent from the qooxdoo mailing list archive at Nabble.com. > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > > > powering Web 2.0 with engaging, cross-platform capabilities. Quickly > and > > > easily build your RIAs with Flex Builder, the Eclipse(TM)based > > development > > > software that enables intelligent coding and step-through debugging. > > > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > _______________________________________________ > > > qooxdoo-devel mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > > > > > > ------------------------------------------------------------------------------ > > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > > software that enables intelligent coding and step-through debugging. > > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > _______________________________________________ > > qooxdoo-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > > > > -- > > View this message in context: > > http://n2.nabble.com/Removing-rows-from-a-table-tp2528366p2528909.html > > Sent from the qooxdoo mailing list archive at Nabble.com. > > > > > > > > > ------------------------------------------------------------------------------ > > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > > software that enables intelligent coding and step-through debugging. > > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > _______________________________________________ > > qooxdoo-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > -- > View this message in context: > http://n2.nabble.com/Removing-rows-from-a-table-tp2528366p2534452.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- View this message in context: http://n2.nabble.com/Removing-rows-from-a-table-tp2528366p2538694.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
