Example #1
0
        protected virtual void OnVisualItemFormatting(object sender, VisualItemFormattingEventArgs args)
        {
            VisualListItemFormattingEventHandler handler = (VisualListItemFormattingEventHandler)this.Events[VisualItemFormattingEventKey];

            if (handler != null)
            {
                handler(this, args);
            }
        }
Example #2
0
        protected virtual void OnVisualItemFormatting(object sender, VisualItemFormattingEventArgs args)
        {
            VisualListItemFormattingEventHandler formattingEventHandler = (VisualListItemFormattingEventHandler)this.Events[RadListControl.VisualItemFormattingEventKey];

            if (formattingEventHandler == null)
            {
                return;
            }
            formattingEventHandler((object)this, args);
        }
Example #3
0
        void radListControl1_VisualItemFormatting(object sender, Telerik.WinControls.UI.VisualItemFormattingEventArgs args)
        {
            RadListVisualItem item = args.VisualItem;
            int rowIndex           = item.Data.RowIndex;

            System.ComponentModel.TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(Color));
            item.DrawFill      = true;
            item.BackColor     = (Color)typeConverter.ConvertFromString(null, CultureInfo.InvariantCulture, bgColors[rowIndex % 7]);
            item.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
        }
 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;
 }
 public PopupEditorNotificationData(VisualItemFormattingEventArgs visualItemFormatting)
 {
     this.notificationContext  = PopupEditorNotificationData.Context.VisualItemFormatting;
     this.visualItemFormatting = visualItemFormatting;
 }
Example #6
0
 private void listElement_VisualItemFormatting(object sender, VisualItemFormattingEventArgs args)
 {
     this.NotifyOwner(new PopupEditorNotificationData(args));
 }
Example #7
0
 private void element_VisualItemFormatting(object sender, VisualItemFormattingEventArgs args)
 {
     this.OnVisualItemFormatting(sender, args);
 }