Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Use the official DxChartListEditor from v25.1#74

Merged
dx-bogdanov merged 4 commits intoDevExpress-Examples:25.1.3+from
dx-bogdanov:251_charts
May 16, 2025
Merged

Use the official DxChartListEditor from v25.1#74
dx-bogdanov merged 4 commits intoDevExpress-Examples:25.1.3+from
dx-bogdanov:251_charts

Conversation

@dx-bogdanov
Copy link
Contributor

No description provided.

protected override void OnParametersSet()
{
base.OnParametersSet();
if (ChartEditor.ChartModel is DxPieChartModel pieChart)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any possibility ChartEditor.ChartModel is not DxPieChartModel?)

View.CustomizeViewItemControl<ListPropertyEditor>(this, listPropertyEditor => {
if(listPropertyEditor.ListView.Editor is not DxChartListEditor mapItemDxChartListEditor) { return; }
_chartListEditor = mapItemDxChartListEditor;
_chartListEditor.ControlsCreated += ChartListEditorOnControlsCreated;
Copy link
Contributor

@vladimirlashko vladimirlashko Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually on the moment of CustomizeViewItemControl control is already created - please check if this customization works correctly. I know it is just a refactoring of existing code, but maybe it is time to fix ))

@dx-bogdanov dx-bogdanov merged commit 8fd75a3 into DevExpress-Examples:25.1.3+ May 16, 2025
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants