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

Where can I find.....

4 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
derek
Top achievements
Rank 2
derek asked on 25 Mar 2009, 05:06 PM
The ConfirmText property for the AutoGenerateDeleteColumn?  Cannot find it anywhere.  I'm trying to set up a delete confirmation for the grid.

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 25 Mar 2009, 05:53 PM
Hello Derek,

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?
0
Daniel
Telerik team
answered on 25 Mar 2009, 06:27 PM
Hello Derek,

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!!!
Tags
Grid
Asked by
derek
Top achievements
Rank 2
Answers by
Daniel
Telerik team
derek
Top achievements
Rank 2
Share this question
or