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

Guidance on interaction between RadGrid and RadConfirm

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abhishek
Top achievements
Rank 1
Abhishek asked on 14 Jun 2012, 07:02 AM

I have a RadGrid which has a linkbutton for deleting a row from the grid and I use RadConfirm to display message to user to confirm the delete, if user chooses yes/ok then the record should be deleted.

However before the radconfirm is being called the record from the grid is deleted and then the confirm dialog box appears.

The version I am using version 2012.1.411.40 of teleik and facing issue in this version, can you please help or let me know where am I going wrong?

Updating with additional information:

 

In the grid we are adding a link button using the Command Template on the bottom of the grid and onclientclick,  we have a javascript to check whether any row is selected in the grid and based on that, we display message (ALERT) asking the user to select the record to be deleted. If the row is already selected then we display the (CONFIRM) to check if the user really wants to delete the row. And based on the user choice yes/no the record is deleted.

 

However, using RADConfirm in this scenario works differently, the row is first deleted and then the message is displayed. This is the issue.

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 18 Jun 2012, 08:06 PM
Hello Abhishek,

Thank you for contacting us.

I have created a sample RadGrid web site where I implemented the described functionality. Please check out the attached application and let me know if you need further assistance to achieve the desired behavior on client side.

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
Abhishek
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or