This is a migrated thread and some comments may be shown as answers.

GridViewBoundColumnBase Silverlight event

0 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pavel
Top achievements
Rank 1
Pavel asked on 31 Aug 2012, 09:35 AM

Hello experts,

I created the new control in my "RadGridView" using "public override FrameworkElement CreateCellEditElement(Telerik.Windows.Controls.GridView.GridViewCell cell, object dataItem)" (class MyColumn : GridViewBoundColumnBase) and have some event. I don't have any troubles in desktop mode.

public static RoutedEvent ClickEvent =
  EventManager.RegisterRoutedEvent("Click", RoutingStrategy.Bubble, typeof(MyRoutedEventArgs), typeof(MyColumn)); 

public event RoutedEventHandler Click
{
add { AddHandler(ClickEvent, value); }
remove { RemoveHandler(ClickEvent, value); }
}

......

MyControl.ButtonClicked += new EventHandler<RoutedEventArgs>(_editor_ButtonClicked);

......

void _editor_ButtonClicked(object sender, RoutedEventArgs e)
{
   RoutedEventArgs newEventArgs = new MyColumnRoutedEventArgs(ClickEvent, Cell);
   RaiseEvent(newEventArgs);
}

and etc..

But how can I implement the same functionality for Silverlight ?

Tags
GridView
Asked by
Pavel
Top achievements
Rank 1
Share this question
or