Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 4.52 KB

README.md

File metadata and controls

56 lines (37 loc) · 4.52 KB

Dashboard for ASP.NET Core - How to implement dependent custom properties in a custom item

This example shows how to implement a Custom Item with Custom Properties that depend on each other.

The custom item contains the following custom properties:

  • backColorEnabledProperty
  • backColorProperty
  • rowBorderVisibleProperty
  • rowBorderWeightProperty

The UI of backColorProperty is enabled when backColorEnabledProperty is set to true.

The UI of rowBorderWeightProperty is visible when rowBorderVisibleProperty is set to true.

The control handles the following ICustomItemMetaData.optionsPanelSections events to implement this behavior:

The changeVisibleState and changeDisabledState methods use the API of the DevExtreme dxForm widget to apply visual state changes. Item content is rendered based on custom property values in the CustomItemViewer.renderContent method.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)