Completed
Last Updated: 15 Aug 2017 10:28 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 24 Mar 2017 13:19
Category: PropertyGrid
Type: Bug Report
1
FIX. RadPropertyGrid - ArgumentOutOfRangeException when cancelling the PropertyGridDropDownListEditor.ValueChanging event
To reproduce: please refer to the attached sample project. Try to select a new value from the drop-down editor and press Yes from the message box.

Workaround: use the RadPropertyGrid.PropertyValueChanging event to confirm the property changing: 

private void radPropertyGrid1_PropertyValueChanging(object sender, Telerik.WinControls.UI.PropertyGridItemValueChangingEventArgs e)
{
    e.Cancel = (MessageBox.Show("Are you sure you want to change this?", "Question", MessageBoxButtons.YesNo) != DialogResult.Yes);
}
0 comments