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

text-transform: capitalize in htmlbox (Telerik Report Designer) not Working

1 Answer 325 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
paupau
Top achievements
Rank 1
paupau asked on 21 Dec 2020, 09:53 AM

The text-transform: capitalize syntax is perfectly working when viewing in design tab of Htmlbox , but whenever I printpreview the report , the syntax is not working.

I provided some screenshots regarding to this issue, hope someone could help me out ,really need this feature so that I can use the capitalize text form.
Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 23 Dec 2020, 03:08 PM

Hi paupau,

We are constantly working on improving our product however currently, the HtmlTextBox does not support the text-transform CSS tag.

You can achieve the desired result with the use of a textBox and a user function instead.

User functions allow you to extend the default behavior of the Telerik Reporting engine. User functions are public static (Public Shared in VB.NET) methods that should always return a value and can take an arbitrary number of input parameters.

I have made a method that takes a string as an argument which makes the first letter of each word in uppercase and returns the new string. I think that is what you are trying to achieve, please correct me if I'm mistaken. I will attach the .dll file to my reply, to use it in your report designer you should add a reference to it in the Telerik.ReportDesigner.exe.config. It can look something like the following:

<Telerik.Reporting>
		<AssemblyReferences>
			<add name="UserFunctions" />
		</AssemblyReferences>
	</Telerik.Reporting>

After doing this, you should be able to see the custom function under the misc category.

I hope that I have been able to help, please let me know if you have any other questions.

Regards, Dimitar Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
paupau
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or