4 Answers, 1 is accepted
0
Hello Derek,
I recommend you examine the following links:
Adding a delete confirmation
Confirmation dialogs
An alternative approach:
Regards,
Daniel
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
I recommend you examine the following links:
Adding a delete confirmation
Confirmation dialogs
An alternative approach:
protected void RadGrid1_PreRender(object sender, EventArgs e) |
{ |
GridButtonColumn col = RadGrid1.MasterTableView.GetColumn("AutogeneratedDeleteColumn") as GridButtonColumn; |
col.ConfirmText = "Confirm?"; |
} |
Regards,
Daniel
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
derek
Top achievements
Rank 2
answered on 25 Mar 2009, 06:10 PM
Hey Daniel, thank you for the info, but I am confused and a newbie!
I added your alternative to my cs page and pointed the PreRender for RadGrid one to it; however, I did not receive a confirmation. What did I do wrong?
I added your alternative to my cs page and pointed the PreRender for RadGrid one to it; however, I did not receive a confirmation. What did I do wrong?
0
Hello Derek,
I modified the approach a bit:
For your convenience I also attached a sample website to this thread.
Kind regards,
Daniel
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
I modified the approach a bit:
protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e) |
{ |
if (e.Column.UniqueName == "AutoGeneratedDeleteColumn") |
(e.Column as GridButtonColumn).ConfirmText = "Confirm?"; |
} |
For your convenience I also attached a sample website to this thread.
Kind regards,
Daniel
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
derek
Top achievements
Rank 2
answered on 25 Mar 2009, 06:30 PM
DUDE!! You rock! This is one of the reasons why we purchased!!!