<html> tag removes whitespace in RadLabel.text (Hungarian language)

3 Answers 32 Views
Label TextBox
Pawel
Top achievements
Rank 1
Iron
Pawel asked on 05 Jan 2024, 03:05 PM

Hi, I found out that for some languages like Hungarian <html> tag used in radLabel.text white spaces are escaped.

See an example below:

Is there a way to not remove these white spaces?

Br

Pawel

 

3 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 09 Jan 2024, 03:49 PM

Hello, Pawel,

The provided project is greatly appreciated. I was able to observe the same behavior on my end when there are very long words in the text. 

I have logged it on your behalf on our feedback portal. Here is the public feedback item. You can subscribe to the item to get notified when its status has changed. 

I also updated your Telerik Points for the report.

The possible solution that I can suggest is to use the following tag "< span class=\"tab\" in your html text that would add more space between words:

radLabel4.Text = "<html><ul><li>A kábelkezelőben <span class=\"tab\"> a kábelduplikátummal rendelkező kábel ereinek számának megváltoztatása jól működik.</li></ul></html>";

I hope this helps. If you have any other questions do not hesitate to contact me.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Pawel
Top achievements
Rank 1
Iron
answered on 09 Jan 2024, 04:01 PM

Hi Nadya,

thanks for the workaround, but to be honest it is not enough for my case. I can't put <span class=\"tab\"> everywhere where the space was removed by the Telerik-library (release notes are added by external team and before delivery we don't know how it will result in the Telerik form). 
Looks like this is a library bug. 
Is there any way to fix this?

Best regards
Pawel

0
Nadya | Tech Support Engineer
Telerik team
answered on 11 Jan 2024, 10:34 AM

Hello, Pawel,

I understand that this tag may not be suitable for you. I can suggest another solution that you can use if it suits you until a fix is introduced. You can increase a little the font size and then the text is shown correctly on my end:

radLabel4.Font = new Font("Segoe UI",9.25f);

I hope this helps. Please let me know if you have any other questions. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Label TextBox
Asked by
Pawel
Top achievements
Rank 1
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Pawel
Top achievements
Rank 1
Iron
Share this question
or