rickilama54 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

ListGrid: removal confirmation #325

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Could we have something like this please?
ListGrid.setConfirmRecordRemoval(boolean)
ListGrid.setConfirmRecordRemovalMessage(String)

Original issue reported on code.google.com by jaroslav...@gmail.com on 19 Sep 2009 at 9:51

GoogleCodeExporter commented 8 years ago
No plans to implement this.

Original comment by sanjiv.j...@gmail.com on 20 Sep 2009 at 12:42

GoogleCodeExporter commented 8 years ago
Well, it seems there is no way of asking user whether he insists on deleting a 
record
when using ListGridField.setIsRemoveField(true). Which renders this special 
type of
column quite useless, as confirming a deletion is a very fundamental 
UI-behaviour.

When this user asked about the same thing he has been adviced to use fieldType 
ICON:
http://forums.smartclient.com/showthread.php?t=3764
but such field has some aspects that, I believe, are not very desirable for 
this type
of column; like the header-menu.

Original comment by jaroslav...@gmail.com on 20 Sep 2009 at 12:48

GoogleCodeExporter commented 8 years ago
I mean injecting one SC.confirm call before triggering a removal on the 
underlying
dataSource would be quite sufficient yet very easy to implement solution.

Original comment by jaroslav...@gmail.com on 20 Sep 2009 at 12:51

GoogleCodeExporter commented 8 years ago
I'll look into it.

Original comment by sanjiv.j...@gmail.com on 20 Sep 2009 at 12:53

GoogleCodeExporter commented 8 years ago
Thanks for consideration!

Original comment by jaroslav...@gmail.com on 20 Sep 2009 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by sanjiv.j...@gmail.com on 20 Sep 2009 at 5:08

GoogleCodeExporter commented 8 years ago
Add a new column of icon type and implement your own logic of confirmation 
prompt followed by programatic 
removal of the record.

Original comment by sanjiv.j...@gmail.com on 13 Oct 2009 at 7:44

GoogleCodeExporter commented 8 years ago
you are sad

Original comment by jaroslav...@gmail.com on 13 Oct 2009 at 8:03