This is a migrated thread and some comments may be shown as answers.

Show server side confirmation dialog before updating

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nish
Top achievements
Rank 1
Nish asked on 08 Aug 2012, 03:30 AM
Hi Telerik Team,

I have one requirement in the grid view while editing/deleting a record in the database. Let me explain you my scenario.

1. When user clicks on edit, they are allowed to submit their changes.
2. On click of update, it will validate the updated values and check for some validation. If the validation passes, then it will ask for some confirmation from user.
3. On click of Ok, the changes will be committed to database and on click of cancel the update will be cancelled.

I have attached a flow chart for the same. It would be really great if you can help me out with the sample code snippet.

Thanks,
Nish 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Aug 2012, 11:11 AM
Hi Nish,

One possible approach for implementing delete confirmation is to use a GridButtonColumn as demonstrated below:
<telerik:GridButtonColumn UniqueName="DeleteButtonColumn" ConfirmDialogType="RadWindow"
     ConfirmText="Employer validated. Confirm delete?" ConfirmTitle="Delete Confirm"
     CommandName="Delete" ButtonType="ImageButton">
 </telerik:GridButtonColumn>

In addition, I have created a sample RadGrid web site where I implemented the requested approach. Please check out the attached application and try make best avail out of it in accordance with your own project.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Nish
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or