How can I combine "ApplyClass" with "FormatBlock"?

1 Answer 18 Views
DropDownList Editor UI for ASP.NET AJAX in ASP.NET MVC
mark
Top achievements
Rank 1
mark asked on 30 Jul 2022, 11:42 PM

Out of the box, "ApplyClass" applies a class and "FormatBlock" applies an element type.  I want to do both at once.

For example: I want to be able to to make a red h2 by

  • Wrapping text in 'h2' tags
  • Adding class 'color-red'

I might even want to have an additional class for padding or something so I'd want to

  • Wrap text in 'h2'
  • Add 'color-red' class
  • Add 'padding-bottom-medium' class

I can set up my UI and get to the point where I have my element and list of classes, but can't get anything to work past that.  Do I need to write it all by myself?  I expected some build-in functionality to help with fundamental stuff like this

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Aug 2022, 10:46 AM

Hi Mark,

I hope you are doing well!

There is a special tool named FormatSets that combines the Apply Class and Format Blocks tools. You can play with it in the Format Sets demo and also read more about it in the documentation Format Sets.

Let me know if you have any other questions.

Best Regards,
Rumen
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Tags
DropDownList Editor UI for ASP.NET AJAX in ASP.NET MVC
Asked by
mark
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or