Exemple #1
0
        public override void OnPropertyChange(RadElement element, RadPropertyChangedEventArgs e)
        {
            if ((bool)e.NewValue == true)
            {
                this.item = element as RadListVisualItem;

                if (!this.popupShown)
                {
                    comboPopup = item.ElementTree.Control as DropDownPopupForm;
                    if (comboPopup == null)
                    {
                        return;
                    }

                    comboPopup.PopupClosing += comboPopup_PopupClosing;
                    if (comboPopup.IsDisplayed)
                    {
                        this.popupShown = true;
                        this.popup      = new ZoomPopup(element, new SizeF(1.1f, 1.1f));
                        this.popup.BeginInit();
                        this.WireEvents();
                        this.popup.EndInit();
                        this.popup.Show();
                    }
                }
            }
        }
Exemple #2
0
        void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs e)
        {
            ((CustomListDataItem)this.Data).Checked = this.checkbox.Checked;

            DropDownPopupForm form = this.ElementTree.Control as DropDownPopupForm;

            ((CustomEditorElement)form.OwnerDropDownListElement).SynchronizeText();
        }