Unplanned
Last Updated: 05 Feb 2026 10:00 by ADMIN
Suresh
Created on: 05 Feb 2026 09:42
Category: PropertyGrid
Type: Bug Report
0
PropertyGrid: Mouse is not released when double-clicking an item and resizing the description area
In this particular scenario, we double-click a property grid item. Then we try to resize the description area at the bottom. When we resize the area and release the mouse left button, the area continue to resize while mouse is moved.
1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 05 Feb 2026 10:00

Hello Suresh, 

Thank you for reporting this. To work around this, we can manually call MouseUp on the PropertyGridSplitElement when the child PropertyGridTableElement processes MouseUp.

public class CustomPropertyGridEditor : RadPropertyGrid
{
    protected override PropertyGridElement CreatePropertyGridElement()
    {
        return new CustomPropertyGridElement();
    }
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadPropertyGrid).FullName;
        }
    }
}
public class CustomPropertyGridElement : PropertyGridElement
{
    protected override PropertyGridSplitElement CreateSplitElement()
    {
        return new CustomPropertyGridSplitElement();
    }
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(PropertyGridElement);
        }
    }
}
public class CustomPropertyGridSplitElement : PropertyGridSplitElement
{
    protected override PropertyGridTableElement CreateTableElement()
    {
        return new CustomPropertyGridTableElement();
    }
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(PropertyGridSplitElement);
        }
    }
}
public class CustomPropertyGridTableElement : PropertyGridTableElement
{
    public override bool ProcessMouseUp(MouseEventArgs e)
    {
        bool selectionWasCanceled = false;
        var field = typeof(PropertyGridTableElement).GetField("selectionWasCanceled", 
            System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
        if (field != null)
        {
            selectionWasCanceled = (bool)field.GetValue(this);
        }

        if (selectionWasCanceled)
        {
            (this.Parent as PropertyGridSplitElement).CallDoMouseUp(e);
            return true;
        }
        return base.ProcessMouseUp(e);
    }

    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(PropertyGridTableElement);
        }
    }
}

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.