DPE Admin 3.x

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:

Syntax

Description

{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 Key

Config Value

Binding

State

CellTemplateContent

<div style="{Binding} height:22px; padding-left:3px; padding-top:4px; ">{RawBinding State}</div>

Converter

StringToStringConverter

ConverterParameter

Existing=,Recording=background-color:red; color:white;,Virtual=background-color:yellow; color: blue;

Screenshot:

cm_column_state_with_backgroundcolor.png

Example: Signaling Flag Value With Color

Config Key

Config Value

Binding

Archiving

CellTemplateContent

<div style="background-color:{Binding}; width:10px; height:24px;">&nbsp;&nbsp;</div>

Converter

IntToStringConverter

ConverterParameter

lightgreen,red

Screenshot:

cm_column_flag_with_color.png

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

Config Key

Config Value

Binding

NoDelete

CellTemplateContent

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

Converter

IntToStringConverter

ConverterParameter

,fa davidsystems-flag-not-deleteable

Screenshot:

cm_column_flag_as_font_awesome.png

Available font awesome flags:

Name

Flag

davidsystems-beatmarker

BeatMarker.PNG

davidsystems-flag-archived

FlagArchived.PNG

davidsystems-flag-archiving

FlagArchiving.PNG

davidsystems-flag-copyright

FlagCopyright.PNG

davidsystems-flag-ok

FlagOk.PNG

davidsystems-flag-for-archive

FlagForArchive.PNG

davidsystems-flag-for-dearchive

FlagForDearchive.PNG

davidsystems-flag-invalid

FlagInvalid.PNG

davidsystems-flag-invisible

FlagInvisible.PNG

davidsystems-flag-keyframe-exist

FlagKeyframeExist.PNG

davidsystems-flag-loop

FlagLoop.PNG

davidsystems-flag-lowres-exist

FlagLowResExist.PNG

davidsystems-flag-new

FlagNew.PNG

davidsystems-flag-not-deleteable

FlagNotDeletable.PNG

davidsystems-flag-personal

FlagPersonal.PNG

davidsystems-flag-ready

FlagReady.PNG

davidsystems-flag-text

FlagText.PNG

davidsystems-flag-vsat

FlagVsat.PNG

Example: Mixing font awesome characters with background color

Config Key

Config Value

Binding

State

CellTemplateContent

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

Converter

StringToStringConverter

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:

cm_column_mix_color_with_font_awesome.png

Example: Showing an icon in a column

SpeechToText icon

Config Key

Config Value

Binding

SPEECHTOTEXT_PLAIN

CellTemplateContent

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

Converter

IntToStringConverter

ConverterParameter

,$default$=fa fa-commenting-o

Screenshot:

CM_S2T_Column.png

Lores icon

Config Key

Config Value

Binding

LowResExists

CellTemplateContent

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

Converter

IntToStringConverter

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:

cm_column_icon.png

Config Key

Config Value

Binding

Dummy

CellTemplateContent

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

Screenshot:

cm_column_download_link.png

Example: SD/HD Video Format Column

Config Key

Config Value


Binding

hiMedium.Format


Converter

FormatToSdHdConverter


ConverterParameter

Default (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.