private void DropDownListElement_SelectedIndexChanging( object sender, PositionChangingCancelEventArgs e) { if (e.Cancel || e.Position < 0) { return; } RadDropDownListElement editorElement = (RadDropDownListElement)this.EditorElement; if (this.IsInitalizing || !this.EditorElement.IsInValidState(true)) { return; } object newValue = editorElement.Items[e.Position].Value; object oldValue = (object)null; if (editorElement.SelectedItem != null) { oldValue = editorElement.SelectedItem.Value; } ValueChangingEventArgs e1 = new ValueChangingEventArgs(newValue, oldValue); this.OnValueChanging(e1); e.Cancel = e1.Cancel; this.cancelValueChanging = e1.Cancel; }
public PopupEditorNotificationData( PositionChangingCancelEventArgs positionChangingCancelEventArgs) : this() { this.notificationContext = PopupEditorNotificationData.Context.SelectedIndexChanging; this.positionChangingCancelEventArgs = positionChangingCancelEventArgs; }
protected virtual bool OnCurrentPositionChanging(int newPosition) { if (this.CurrentPositionChanging != null) { PositionChangingCancelEventArgs args = new PositionChangingCancelEventArgs(newPosition); this.CurrentPositionChanging(this, args); return(args.Cancel); } return(false); }
protected virtual bool OnCurrentPositionChanging(int newPosition) { if (this.CurrentPositionChanging == null) { return(false); } PositionChangingCancelEventArgs e = new PositionChangingCancelEventArgs(newPosition); this.CurrentPositionChanging((object)this, e); return(e.Cancel); }
protected virtual bool OnSelectedIndexChanging(object sender, int newIndex) { Telerik.WinControls.UI.Data.PositionChangingEventHandler changingEventHandler = (Telerik.WinControls.UI.Data.PositionChangingEventHandler) this.Events[RadListControl.SelectedIndexChangingEventKey]; if (changingEventHandler == null) { return(false); } PositionChangingCancelEventArgs e = new PositionChangingCancelEventArgs(newIndex); changingEventHandler((object)this, e); return(e.Cancel); }
protected virtual bool OnSelectedIndexChanging(object sender, int newIndex) { PositionChangingEventHandler handler = (PositionChangingEventHandler)this.Events[SelectedIndexChangingEventKey]; if (handler != null) { PositionChangingCancelEventArgs args = new PositionChangingCancelEventArgs(newIndex); handler(this, args); return(args.Cancel); } return(false); }
public PopupEditorNotificationData() { this.notificationContext = PopupEditorNotificationData.Context.None; this.valueChangedEventArgs = (Telerik.WinControls.UI.Data.ValueChangedEventArgs)null; this.positionChangingCancelEventArgs = (PositionChangingCancelEventArgs)null; this.positionChangedEventArgs = (Telerik.WinControls.UI.Data.PositionChangedEventArgs)null; this.listItemDataBindingEventArgs = (ListItemDataBindingEventArgs)null; this.listItemDataBoundEventArgs = (ListItemDataBoundEventArgs)null; this.creatingVisualListItemEventArgs = (CreatingVisualListItemEventArgs)null; this.keyPressEventArgs = (KeyPressEventArgs)null; this.mouseEventArgs = (MouseEventArgs)null; this.sortStyleChanged = (SortStyleChangedEventArgs)null; this.visualItemFormatting = (VisualItemFormattingEventArgs)null; this.keyEventArgs = (KeyEventArgs)null; }
private void listElement_SelectedIndexChanging(object sender, PositionChangingCancelEventArgs e) { this.NotifyOwner(new PopupEditorNotificationData(e)); }
private void element_SelectedIndexChanging(object sender, PositionChangingCancelEventArgs e) { e.Cancel = this.OnSelectedIndexChanging(sender, e.Position); }