Completed
Last Updated: 03 Oct 2019 11:39 by ADMIN
Release R3 2019 SP1 (LIB 2019.3.1007)
Dimitar
Created on: 02 Sep 2019 08:44
Category: Diagram, DiagramRibbonBar, DiagramToolBox
Type: Bug Report
0
RadDiagram: The DataSource is not immediately updated after adding an item from the tool box

Use attached to reproduce.

Workaround:

private void RadDiagram1_ItemsChanged(object sender, Telerik.WinControls.UI.Diagrams.DiagramItemsChangedEventArgs e)
{
    if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add)
    {
        IEditableObject editableObject = ((RadDiagramShape)e.NewItems.First()).DataBoundItem as IEditableObject;
        if (editableObject != null)
        {
            editableObject.EndEdit();
        }
    }
}

 

Attached Files:
0 comments