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

AddNewRecordText - ToolTip: HTML Encoded

6 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 10 Mar 2016, 09:01 AM

If I add a value of "äöü&" to the AddNewRecordText of the CommandItemSettings for example, the button text appears correctly but the tooltip is displayed wrong. It shows "äöü&". It doesn't help when I put the already encoded text into the AddNewRecordText.

Referring to this topic it seems to be an old problem:
http://www.telerik.com/forums/addnewrecordtext---ampersand-problem

I'm using the latest Telerik release (2016.1.225.45).

6 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Mar 2016, 09:27 AM
Hello Christian,

I've created a sample RadGrid web site to demonstrate that the text is displayed as expected. Please run the attached web site sample and verify the result.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Christian
Top achievements
Rank 1
answered on 11 Mar 2016, 04:40 PM
Thanks, I checked your code but I still get the encoded letters. But it's not the tooltip on the button which I mentioned in my post. This tooltop is fine, in my Project as well. It's the tooltip of the displayed text on the right side of the button which is wrong I recognized now.

Please the the screenshot attached to this post.
0
Konstantin Dikov
Telerik team
answered on 16 Mar 2016, 09:57 AM
Hi Christian,

I have tested the sample page that Eyup have attached and it displays the tooltip correctly in all browsers on my side (attached is a screenshot from the test). Can you please confirm that you have tested the attached page on your end?

Looking forward to your reply.


Regards,
Konstantin Dikov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Christian
Top achievements
Rank 1
answered on 31 Mar 2016, 10:42 AM

Hi Konstantin,

sorry for the late answer. I just tested the page that Eyup have attached again with the same result. The tooltip of the text is encoded.

Here is the result taken from the browser (see the "title" attribute of the "a"-tag). I testet it with IE 11 and Chrome 49.0.2623.110 m. Both the same.

Telerik.Web.UI.dll version 2016.1.255.45

<td align="left">
   <input name="RadGrid1$ctl00$ctl02$ctl00$AddNewRecordButton" title="äöü&" class="rgAdd" id="RadGrid1_ctl00_ctl02_ctl00_AddNewRecordButton" type="submit" value=" ">
   <a title="&#228;&#246;&#252;&amp;" id="RadGrid1_ctl00_ctl02_ctl00_InitInsertButton" href="javascript:__doPostBack('RadGrid1$ctl00$ctl02$ctl00$InitInsertButton','')">äöü&</a>
</td>

0
Accepted
Konstantin Dikov
Telerik team
answered on 31 Mar 2016, 01:04 PM
Hello Christian,

I have once again tested the scenario, but this time with Classic render mode and I was able to replicate the issue. However, I have to say that this is something that could not be changed in the classic rendering, so I would suggest the following solutions:
  • Set the RenderMode of the RadGrid to "Lightweight";
  • Place RadToolTipManager on your page:
<telerik:RadToolTipManager runat="server" AutoTooltipify="true"></telerik:RadToolTipManager>

As a workaround with the classic rendering you could find the element and manually decode the title.


Best Regards,
Konstantin Dikov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Christian
Top achievements
Rank 1
answered on 04 Apr 2016, 02:45 PM

That's right! The choosen RenderMode is making the difference! So I have to see what I will do. Maybe I try to switch the whole Project to RenderMode="LightWeight" but than it's a bit more work to do. We'll see...

Thanks for your effort, Konstantin!

Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Christian
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or