Completed
Last Updated: 20 Oct 2014 14:02 by ADMIN
ADMIN
Dimitar
Created on: 02 Jul 2014 10:52
Category: CommandBar
Type: Bug Report
1
FIX. RadCommnadBar - when a strip is manually disposed an exception occurs.
To reproduce:
- Remove and dispose a strip at runtime:

private void BRemoveItems_Click(object sender, EventArgs e)
{
    if (this.commandBarRowElement1.Strips.Count > 1)
    {
        if (this.commandBarRowElement1.Strips[1] is MyRadStripElement)
        {
            MyRadStripElement stripForRemoval = (MyRadStripElement)this.commandBarRowElement1.Strips[1];
                
            this.commandBarRowElement1.Strips.Remove(stripForRemoval);
            stripForRemoval.Dispose();
        }
    }
}
Workaround: dispose the item before remove it.
0 comments