protected virtual void OnItemDataBound(ItemDataBoundEventArgs e) { if (this.ItemDataBound != null) { this.ItemDataBound(this, e); } }
/// <summary> /// Raises the ItemDataBound event. /// </summary> protected virtual void OnItemDataBound(ItemDataBoundEventArgs e) { ItemDataBoundEventHandler handler1 = (ItemDataBoundEventHandler)this.Events[RadListBox.ItemDataBoundEventKey]; if (handler1 != null) { handler1(this, e); } }
private void rcCategorias_ItemDataBound(object sender, Telerik.WinControls.UI.ItemDataBoundEventArgs e) { if (e.DataBoundItem is RadButtonElement) { RadButtonElement button = (e.DataBoundItem as RadButtonElement); button.Text = (e.DataItem as CategoriasFeatures).Name; button.Tag = (e.DataItem as CategoriasFeatures).ID; button.Font = new Font("Arial", 15); button.Click += new EventHandler(CategoriasCarouselDataBinding_Click); } }
private void radCarousel1_ItemDataBound(object sender, Telerik.WinControls.UI.ItemDataBoundEventArgs e) { RadButtonElement carouselItem = (RadButtonElement)e.DataBoundItem; carouselItem.TextImageRelation = TextImageRelation.TextAboveImage; carouselItem.Font = new Font("Verdana", 10f); carouselItem.ForeColor = Color.WhiteSmoke; //Store data to use later carouselItem.Tag = e.DataItem; Image image = this.GetImageFromBytes(EvaluatePropertyValue(e.DataItem, "Image")); if (image != null) { carouselItem.Image = new Bitmap(image, 165, 165); } carouselItem.Text = (string)EvaluatePropertyValue(e.DataItem, "AlbumName"); }
private void ListBoxElement_ItemDataBound(object sender, ItemDataBoundEventArgs e) { this.OnItemDataBound(e); }