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

change heder text of delete dialogbox

5 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jayesh Goyani
Top achievements
Rank 2
Jayesh Goyani asked on 18 Sep 2010, 03:00 PM
i want to rename header of the delete dialog box.
for Ex :  "Message from Webpage" to "Custom Message"

please check below attached image for better understanding.

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Sep 2010, 05:29 AM
Hi Jayesh,


Here is the mark-up for accomplishing the required. Set the ConfirmTitle property as per your requirement.

aspx:
<Columns>
    <telerik:GridButtonColumn ConfirmTitle="Custom message" ConfirmDialogType="RadWindow" Text="Del" UniqueName="Del"
        HeaderText="Delete" ConfirmText="Do you want to delete?">
    </telerik:GridButtonColumn>



-Shinu.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Sep 2010, 07:25 AM
hi shinu,

thanks for your help.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Sep 2010, 10:34 AM
still same HEADER text ("Message from Webpage") coming.
0
Atit Thaker
Top achievements
Rank 1
answered on 20 Sep 2010, 02:58 PM
i am having the same problem.

Also, I tried using the code you posted above. But the problem is in Delete Dialog box, I need to show custom message based on the item user wish to delete.

Like, Are you sure you want to delete "Physics". where physics is replaced by the subject being deleted.

I get this error when I try to give custom message.

Error 74 Databinding expressions are only supported on objects that have a DataBinding event. Telerik.Web.UI.GridButtonColumn does not have a DataBinding event. D:\F Drive\Schools Online\Technical\SS.SchoolsOnline\SS.SchoolsOnline.Web\Subject\Subject.aspx 87 
 like this

<telerik:GridButtonColumn ConfirmTitle="Delete Subject" 
ConfirmDialogType="RadWindow"<BR>                                
Text="Del" UniqueName="Del" HeaderText="Delete" ConfirmText='<%# 
Eval("SubjectName","return confirm(\"Are you sure want to delete  {0}? 
\")") 
%>'><BR>                            
</telerik:GridButtonColumn>

Please let me know what can be done about this.
0
Princy
Top achievements
Rank 2
answered on 21 Sep 2010, 02:30 PM
Hello Atit,

Please refer the following forum post to achieve this scenario.
GridButtonColumn, RadWindow and ConfirmText

Thanks,
Princy.
Tags
Grid
Asked by
Jayesh Goyani
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Jayesh Goyani
Top achievements
Rank 2
Atit Thaker
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or