Completed
Last Updated: 10 Oct 2018 10:07 by Dimitar
ADMIN
Dimitar
Created on: 03 Oct 2018 11:41
Category: PropertyGrid
Type: Bug Report
0
FIX. RadPropertyGrid - the ValueChanged event cannot be fired from custom editor
Use the editor from the following article to reproduce: https://docs.telerik.com/devtools/winforms/propertygrid/editors/using-custom-editor

Workaround:
void TrackBarEditor_ValueChanged(object sender, EventArgs e)
{
    PropertyGridItemElement owner = this.OwnerElement as PropertyGridItemElement;

    if (owner != null)
    {
        var method = owner.PropertyTableElement.GetType().GetMethod("OnValueChanged", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
        method.Invoke(owner.PropertyTableElement, new object[] { this, EventArgs.Empty });

    }
}
0 comments