Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    SchedulerControl.CustomResourceHeaderTemplateValue Event

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

    Namespace: DevExpress.XtraScheduler

    Assembly: DevExpress.XtraScheduler.v25.1.dll

    NuGet Package: DevExpress.Win.Scheduler

    #Declaration

    public event EventHandler<CustomResourceHeaderTemplateValueEventArgs> CustomResourceHeaderTemplateValue

    #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.

    void OnCustomResourceHeaderTemplateValue(object sender, CustomResourceHeaderTemplateValueEventArgs e) {
        if (e.FieldName == "UnboundField")
            e.FieldValue = "Unbound data assigned in code";
    }
    
    See Also