craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > General QuickTable Support/Help Post New Topic   Post A Reply
Trying to remove rows in non-DB mode printer friendly version
next newest post | next oldest post
Author Messages
brienv
Unregistered
Edit or delete this message Reply w/Quote
Posted Thursday, January 25, 2007 @ 18:51:30  

I need to remove the selected row(s) from QuickTable when the user uses the DEL button or from a context menu (which first removes them from my own data list). I tried calling delete() but it doesn't seem to do anything.

I also tried removing them from qt.getDataVector().remove(...) but that was ineffective as well. The only way I've been able to successfully remove rows has been to refresh with a new copy of the data but then the user's scroll position, etc. are reset.

Any help would be greatly appreciated. Already searched the forum but no dice.

Thanks,
Brien Voorhees

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Thursday, January 25, 2007 @ 22:06:40  

when something strange like this happens, first you need to enable the debug by yourdbTable.debug=true; This will give all the error messages.

delete will work only when the table is editable, make sure your table is editable yourdbtable.setEditable(true);

By default when you press DEL button the selected row will be deleted or you can call delete();

brienv
Unregistered
Edit or delete this message Reply w/Quote
Posted Friday, January 26, 2007 @ 18:00:50  

That was it. I didn't realize the QuickTable had to be editable for the delete() to function. In the future I'll make use of quicktabledebug=true .

Thanks!

Brien Voorhees

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Thursday, May 17, 2007 @ 06:02:12  

From 2.0.5.27 version, programatically you can delete rows in non editable mode, but users cannot delete rows.
Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios