Approved
Last Updated: 02 Sep 2019 09:57 by ADMIN
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