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

Comfirmation Dialog

6 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jed Fletcher
Top achievements
Rank 1
Jed Fletcher asked on 09 Jul 2010, 10:56 AM
Hello

I have a button column with the button set to link button. Now without a confirmation dialog set the button executes my itemcommand event perfectly.If however i put the confirmation dialog on then it pops up the dialog but doesnt executed the itemcommand event. How can i cure this. Thanks in advance.                         



6 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 12 Jul 2010, 01:53 PM
Hello Jed,

I tried to reproduce the described behavior but to no success. Attached is a small sample.

Regards,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jed Fletcher
Top achievements
Rank 1
answered on 12 Jul 2010, 02:28 PM
 <telerik:GridButtonColumn ButtonType ="LinkButton" Text = "CancelOrder"  CommandName = "Cancel" ConfirmDialogType = "RadWindow" ConfirmText = "Cancel this Order?" ConfirmTitle = "Cancel Order"

This is my button column

I use the GridCommandEventArgs which fires only when i take out the confirmdialog
                             
0
Tsvetoslav
Telerik team
answered on 14 Jul 2010, 09:23 AM
Hello Jed,

Could you reproduce the problem on my sample? It behaves correctly even with your column definition.

Best wishes,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jed Fletcher
Top achievements
Rank 1
answered on 14 Jul 2010, 09:48 AM
It works with your grid however I need to fire a code behind method.

The problem is that in code behind i cant get the itemcommand to fire when i have a confirmation dialog.

Please send me code where you click a button on the grid it popup the confirm dialog then hits the itemcommand event handler in code behind.

Thanks
0
Accepted
Tsvetoslav
Telerik team
answered on 15 Jul 2010, 02:56 PM
Hi Jed,

My sample does just this - try clicking on the edit button in the first column and put a break point in the ItemCommand event to see the result.

Regards,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jed Fletcher
Top achievements
Rank 1
answered on 15 Jul 2010, 03:57 PM
My apologies

It seems it must be some override that i have in my project.
Works fine in your grid.

Thanks for the help much appreciated.
Tags
Grid
Asked by
Jed Fletcher
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Jed Fletcher
Top achievements
Rank 1
Share this question
or