New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

This Class implements the ResourceStyleMapping.

Definition

Constructors

C#
public ResourceStyleMapping()
C#
public ResourceStyleMapping(string type, string key, string text, string applyCssClass)
Parameters:typestringkeystringtextstringapplyCssClassstring
C#
public ResourceStyleMapping(string type, string key, string applyCssClass)
Parameters:typestringkeystringapplyCssClassstring

Properties

Gets or sets a value indicating the cascading style sheet (CSS) class to render for appointments that use the matching resource.

C#
public string ApplyCssClass { get; set; }
Property Value:

The cascading style sheet (CSS) class to render for appointments that use the matching resource.

The default value is Empty.

You can define your own CSS class name or use some of the predefined class names:

  • rsCategoryBlue
  • rsCategoryDarkBlue
  • rsCategoryDarkGreen
  • rsCategoryDarkRed
  • rsCategoryGreen
  • rsCategoryOrange
  • rsCategoryPink
  • rsCategoryRed
  • rsCategoryViolet
  • rsCategoryYellow

Gets or sets a value indicating the background color to render for appointments that use the matching resource.

C#
[TypeConverter(typeof(WebColorConverter))]
public virtual Color BackColor { get; set; }
Property Value:

The background color to render for appointments that use the matching resource.

The default value is Empty.

Setting a background color automatically switches the appointment rendering to Simple (no rounded corners and gradients). In order to disable this legacy behavior, and force the default rendering, set AppointmentStyleMode to Default.

Gets or sets a value indicating the border color to render for appointments that use the matching resource.

C#
[TypeConverter(typeof(WebColorConverter))]
public virtual Color BorderColor { get; set; }
Property Value:

The border color to render for appointments that use the matching resource.

The default value is Empty.

Setting a border color automatically switches the appointment rendering to Simple (no rounded corners and gradients). In order to disable this legacy behavior, and force the default rendering, set AppointmentStyleMode to Default.

Gets or sets a value indicating the resource Key to match.

C#
public string Key { get; set; }
Property Value:

Resource Key to match.

Gets or sets a value indicating the resource Text to match.

C#
public string Text { get; set; }
Property Value:

Resource Text to match.

Gets or sets a value indicating the resource Type to match.

C#
public string Type { get; set; }
Property Value:

Resource Type to match.