Skip to main content
Skip table of contents

Available CellTemplateContent Values

As part of Configuring Grids in DPE Web Applications, the CellTemplateContent key enables you to customize columns using templated HTML. This freedom opens the door to a near limitless combination of column design and content. 

Defining this key requires knowledge about html coding

When specifying CellTemplateContent values you can reference metadata properties using the following syntax:

SyntaxDescription
{Binding}

Will be replaced by the value referenced by your default Binding for this column. A converter specified in Converter and ConverterParameter will be applied to your default Binding.

{RawBinding Property}
Will be replaced by the metadata field referenced by Property
{RawBinding Property|ConverterName|ConverterParams}
Will be replaced by the metadata fields referenced by Property and after the specified converter is applied.

Example: Setting Background Color For Column State

Config KeyConfig Value
BindingState
CellTemplateContent<div style="{Binding} height:22px; padding-left:3px; padding-top:4px; ">{RawBinding State}</div>
ConverterStringToStringConverter
ConverterParameterExisting=,Recording=background-color:red; color:white;,Virtual=background-color:yellow; color: blue;

Screenshot:

Example: Signaling Flag Value With Color

Config KeyConfig Value
BindingArchiving
CellTemplateContent<div style="background-color:{Binding}; width:10px; height:24px;">&nbsp;&nbsp;</div>
ConverterIntToStringConverter
ConverterParameterlightgreen,red

Screenshot:

Example: Using built-in font awesome characters to display a sign for flag columns

Config KeyConfig Value
BindingNoDelete
CellTemplateContent<div class="{Binding}"  style="color:black; width:16px; height:16px; margin-left:5px; margin-top:6px;">&nbsp;&nbsp;</div>
ConverterIntToStringConverter
ConverterParameter,fa davidsystems-flag-not-deleteable

Screenshot:

Available font awesome flags:

NameFlag
davidsystems-beatmarker

davidsystems-flag-archived

davidsystems-flag-archiving

davidsystems-flag-copyright

davidsystems-flag-ok

davidsystems-flag-for-archive

davidsystems-flag-for-dearchive

davidsystems-flag-invalid

davidsystems-flag-invisible

davidsystems-flag-keyframe-exist

davidsystems-flag-loop

davidsystems-flag-lowres-exist

davidsystems-flag-new

davidsystems-flag-not-deleteable

davidsystems-flag-personal

davidsystems-flag-ready

davidsystems-flag-text

davidsystems-flag-vsat

Example: Mixing font awesome characters with background color

Config KeyConfig Value
BindingState
CellTemplateContent

<div {Binding} title="{RawBinding State}" ></div>

ConverterStringToStringConverter
ConverterParameter$$$,|$$$Existing|
 class="fa fa-floppy-o" style="color:black; height:21px; padding-left:3px; padding-top:3px; ",Recording|
 class="fa fa-microphone" style="background-color:red; color:white; width:100%; height:21px; padding-right:3px; padding-left:3px; padding-top:3px;"

Font awesome gallery: https://fontawesome.com/icons?d=gallery

Screenshot:

Example: Showing an icon in a column

SpeechToText icon

Config KeyConfig Value
BindingSPEECHTOTEXT_PLAIN
CellTemplateContent

<div class="{Binding}" style="color:black;">&nbsp;&nbsp;</div>

ConverterIntToStringConverter
ConverterParameter,$default$=fa fa-commenting-o

Screenshot:

Lores icon

Config KeyConfig Value
BindingLowResExists
CellTemplateContent

<div style="{Binding} margin-top:5px; margin-left:5px; width:16px; height:16px;">&nbsp;&nbsp;</div>

ConverterIntToStringConverter
ConverterParameter,background-image: url(import/dpe-html5-framework/core/resources/images/video.png); background-size: 100% auto;

You can also specify an external URL.

Screenshot:

Example: Download link to main medium

Config KeyConfig Value
BindingDummy
CellTemplateContent

<a href="/DpeWebApplication/DownloadMedium.ashx?{RawBinding FullEntryId}">Download</a>

Screenshot:

Example: SD/HD Video Format Column

Config KeyConfig Value
BindinghiMedium.Format
ConverterFormatToSdHdConverter
ConverterParameterDefault (Empty)'SD', 'HD' or ' ' for HD video, SD video or other video

,SD,Labels only SD videos

,background-image: url(http://vwwv.image.com/img.png); background-size: 100% auto;,background-image: url(audio.png); background-size: 100% auto; 

Displays an image depending on the video quality.

HD or SD quality.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.