Back to Devexpress

SchedulerControl.CustomResourceHeaderTemplateValue Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-c09569be.md

latest2.1 KB
Original Source

SchedulerControl.CustomResourceHeaderTemplateValue Event

Allows you to pass values to elements bound to custom data fields.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event EventHandler<CustomResourceHeaderTemplateValueEventArgs> CustomResourceHeaderTemplateValue
vb
Public Event CustomResourceHeaderTemplateValue As EventHandler(Of CustomResourceHeaderTemplateValueEventArgs)

Event Data

The CustomResourceHeaderTemplateValue event's data class is DevExpress.XtraScheduler.CustomResourceHeaderTemplateValueEventArgs.

Remarks

The sample markup below demonstrates an HTML element bound to the custom “UnboundField” property.

html
<div class="description">${UnboundField}</div>

The CustomResourceHeaderTemplateValue event is handled to set the value of this HTML element.

csharp
void OnCustomResourceHeaderTemplateValue(object sender, CustomResourceHeaderTemplateValueEventArgs e) {
    if (e.FieldName == "UnboundField")
        e.FieldValue = "Unbound data assigned in code";
}
vb
Private Sub OnCustomResourceHeaderTemplateValue(ByVal sender As Object, ByVal e As CustomResourceHeaderTemplateValueEventArgs)
    If e.FieldName = "UnboundField" Then
        e.FieldValue = "Unbound data assigned in code"
    End If
End Sub

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace