void CustomEditorElement_PopupClosing(object sender, RadPopupClosingEventArgs args)
        {
            CustomEditorElement editor = (CustomEditorElement)sender;

            if (args.CloseReason == RadPopupCloseReason.Mouse)
            {
                if (editor.PopupForm.Bounds.Contains(Control.MousePosition))
                {
                    args.Cancel = true;
                }
            }
        }
        private RadListDataItem FindByValue(object value)
        {
            CustomEditorElement editorElement = this.EditorElement as CustomEditorElement;

            foreach (RadListDataItem item in editorElement.Items)
            {
                if (value.Equals(item.Value))
                {
                    return(item);
                }
            }
            return(null);
        }