StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Overriding the delete button....Expand / Collapse
Author
Message
Posted 09/28/2006 3:19:21 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
My question deals with the DevExpress version of the Maintenance form but could you answer it regarding both versions of the maintenance form?

I want to use the default delete button on the MaintenanceFormToolbar but I need an inputbox to popup and ask for a reason for deletion. What would be the best way to approach this? Is there a way to override the delete button... or do I put my inputbox in the beforedelete event in the business object and then just disable the default delete confirmation popup?

Thanks
Post #3178
Posted 09/28/2006 3:26:06 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Regardless of you front end, you will want to capture the BeforeDelete event and place your InputBox and logic here.  This way it does not matter where the delete comes from.  You want to be careful to hard-code logic with the UI too much.  For exa,ple, even the MaintenanceFormToolstrip does not have code that executes the delete or add.  Ultimately all of this logic resides on the BO and the MaintenanceFormToolstrip just relies on events to handle itself.  Make sense?
Post #3179
Posted 09/28/2006 3:31:39 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
Yes. Thanks!
Post #3180
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:37am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 8 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.