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

GridButtonColumn throws a javascript error in IE 10 when the data field included in the confirmation text includes certain characters

3 Answers 18 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 21 Mar 2013, 04:07 PM
The GridButtonColumn throws a javascript error in IE 10 when the data field included in the confirmation text includes certain characters.

With this markup I get a javascript error for an unterminated string (in the VS 2012 debugger) when the confirmation text data field (sessionName in the markup) has this value:
Surface Analysis of Biological Materials Using Vibrational & Non Linear Optical Spectroscopy Techniques (8:00-10:00 am) / 3D Imaging & Nanochemical Analysis - Part 1 (10:40 am-12:00 pm)

I'm guessing it's the / character that causes the problem, or the ampersand? Is there any way for me to force html-encoding for the confirmation text data string? Doesn't the control do that by default since it allows data field usage?
<telerik:GridButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton"
CommandName="Delete" Text="Delete Session" ImageUrl="~/Images/Delete.gif"
HeaderText="Delete" HeaderStyle-Width="40"
ConfirmTitle="Delete" ConfirmDialogType="RadWindow"
ConfirmTextFields="sessionName" ConfirmTextFormatString="Delete session '{0}'?"
>


3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 26 Mar 2013, 03:27 PM
Hi Paul,

I have created a sample project in order to replicate the issue but in my case the confirmation window opens without problems. Could you please review my sample and try to modify it so that it reproduces the issue? Once we have a sample that successfully replicates the problem we would be able to determine what is causing it.

All the best,
Angel Petrov
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.
0
Paul
Top achievements
Rank 1
answered on 18 Apr 2013, 03:13 PM
Having run into this again I tried opening your sample project in VS 2012, but it doesn't compile due to missing references, etc. I started fixing it, but did not feel that I should be spending my time on more of Telerik's responsibilities. Did you test in Asp.Net 4.5, with IE10? If so, could I please get a working sample VS project and then I would be willing to test again.
0
Angel Petrov
Telerik team
answered on 23 Apr 2013, 08:06 AM
Hello Paul,

Indeed I have tested the application using .NET 4.5 and IE10 but was unable to replicate the problem. In attachments you can find the fully runnable project which I used for testing.

Kind regards,
Angel Petrov
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
Paul
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Paul
Top achievements
Rank 1
Share this question
or