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

3 Answers 79 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.

Ian
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 24 Jan 2025, 09:42 AM

I also have the same issue, but with English language text. After the word 'validation' (which is not really an especially long word) then the next blanks are removed.

Like Pawel, I can't go though each bit of HTML text in RadLabels and look for long words, but I can confirm the the font workaround does ...work around it, but this now means a change to look and feel.

Please can we have a fix to this? I bet RadLabel is probably the most used of all your controls, and having HTML content in then is one of my users favourite features.

Nadya | Tech Support Engineer
Telerik team
commented on 29 Jan 2025, 07:44 AM

Hello, Ian,

Thank you for your feedback. The item is still not fixed. Please excuse us for this inconvenience. I updated its priority upon receiving your answer here.

I understand that changing the font size for labels might not look good on your forms. What I can suggest is to give a try keep the same font but with higher font size. I hope this helps until a fix is introduced. However, when I test on my side using English language words, the label text displays correctly. Below you can see how I am testing it. Am I missing something to replicate your problem?

this.radLabel1.Text = "<html> This is a simple validation .</html>";

The information provided would be useful for us when our team start fixing the issue, thus we should be able to test different scenarios and also cover your particular case. To do so, I need to know how exactly you reproduce the problem. Thank you for your cooperation.

If you have any further questions, please let me know.

Pawel
Top achievements
Rank 1
Iron
commented on 29 Jan 2025, 08:12 AM

Hi Nadya, I provided examples and I hope that was a good starting point for developers to fix it. 
Please don't fix it only for English language (is English language more important than other languages?).
Walkaround with changing font size is not acceptable, for our solution we have covered UI also with Ranorex tests where we compare screenshots, changing fonts is no go for us.

Regards

Pawel

Nadya | Tech Support Engineer
Telerik team
commented on 29 Jan 2025, 01:57 PM

Hello, Pawel,

Yes, the examples that you provided are greatly appreciated and are taken into consideration. I understand that you use the Hungarian language. Our QA engineers will thoroughly test various languages before introducing the fix officially, especially Hungarian.

However, when @Ian asked for the same problem, he said the issue could be reproduced in English as well. This is why I am asking him if he can share more details on his case. It is important for us to gather as much information as we can, so we can have different client scenarios when fixing the issue. Thus, we can ensure you should gather the fix that you need and cover your scenarios.

I hope this clarifies things. If you have any other questions, do not hesitate to ask. 

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