tableView 2.0 delete a row without animation

I was excited by this new deleteRows() function since the hardwired animation in deleteRow was causing problems when I wanted to deleted multiple rows at the same time.  Unfortunately there’s a pretty serious bug in the new code; it fails if any of the rows being deleted aren’t visible.

I’ve filed bug Case 40276 using the provided test code from the widget source.  It looks like it should be a trivial fix.  It is trying to call an undefined function.

Any updates on this - supposed to be - upcoming implemented feature??

<akak>: Agreed --it would be useful to have an update on this.

Brent, you mentioned in early January that the feature is already implemented and will be in an “upcoming daily build” – can you share any more information? Thanks!

Hi corona273,

I reminded the engineers about this and they hope to include this in a daily build within the next week or so. If this doesn’t occur, can you please respond back to this thread so I can push the issue?

Thanks,

Brent

Hello,
 

Would love to see this in the next daily build as well.

Thanks,
Shehab

Brent: 'afternoon! You said “can you please respond back to this thread so I can push the issue” two weeks ago. I don’t believe Tableview has been updated, so here’s your reminder as requested. :slight_smile:

Hi @corona273,

Thanks for the reminder… just please don’t kill the messenger (me). :slight_smile: Engineering got back-logged a bit on this, but they report it should go into testing next week and rolled into a daily build shortly after.

Brent

Sounds great! Thanks, Brent!

Hello!

Any update on this ? I’m about to submit my app but I was waiting to be able to implement this new feature. Is this still imminent (days) or has it been ulteriorly postponed?

thanks !!!

Hi @akak and others,

I believe this fix/addition passed testing yesterday, so it should roll out into a daily build soon.

Brent

Brent:

'evening! It looks like you folks have made a heck of a lot of changes to the widget library in this evening’s daily build:

http://forums.coronalabs.com/topic/55291-new-daily-build-20152581-revamps-widget-library/

Is this tableview delete row change included? And if it is, can you tell us what the interface is?

Thanks!

Yes, like above, please :slight_smile: !

Looks like this works with tableView:deleteRows( tableOfRowsToDelete, tableOfAnimationOptions )

The table of animationOptions looks like:

animationOptions.slideLeftTransitionTime = timeInMilliseconds

animationOptions.slideUpTransitionTime = timeInMilliseconds

So something like;

[lua]

local animationOptions = { slideLeftTransitionTime = 0, slideUpTransitionTime = 0 }

tableView:deleteRows( { 1, 2, 3, 4}, animationOptions )

[/lua]

I’m checking on the status of the documentation.

Rob

The (daily) documentation should be updated on this point soon. In the meantime, Rob’s example is correct so you may mimic that.

Brent

I was excited by this new deleteRows() function since the hardwired animation in deleteRow was causing problems when I wanted to deleted multiple rows at the same time.  Unfortunately there’s a pretty serious bug in the new code; it fails if any of the rows being deleted aren’t visible.

I’ve filed bug Case 40276 using the provided test code from the widget source.  It looks like it should be a trivial fix.  It is trying to call an undefined function.