Hello,
I'm trying to wrap the Telerik (Q1 2010) GridViewRow class within my own CustomGridViewRow implementation. However the items that are generated if I set the ItemsSource are not created correctly if I use a CustomGridView class that extends RadGridView and overrides the IsItemItsOwnContainerOverride and GetContainerFromItem methods.
I suppose the problem is my implementation of the GetContainerFromItem method simply returning a new CustomGridViewRow instance which works fine on the RadTabControl to extend the TabItems with Closable support, but there the method signature has no item parameter so I guess I'm missing something here.
I hope someone can point me into the right direction.
Best regards,
Peter
I'm trying to wrap the Telerik (Q1 2010) GridViewRow class within my own CustomGridViewRow implementation. However the items that are generated if I set the ItemsSource are not created correctly if I use a CustomGridView class that extends RadGridView and overrides the IsItemItsOwnContainerOverride and GetContainerFromItem methods.
public class CustomGridView : RadGridView |
{ |
protected override bool IsItemItsOwnContainerOverride(object item) |
{ |
return (item is CustomGridViewRow); |
} |
protected override DependencyObject GetContainerFromItemOverride(object item) |
{ |
return new CustomGridViewRow(); |
} |
} |
public class CustomGridViewRow : GridViewRow |
{ |
} |
I suppose the problem is my implementation of the GetContainerFromItem method simply returning a new CustomGridViewRow instance which works fine on the RadTabControl to extend the TabItems with Closable support, but there the method signature has no item parameter so I guess I'm missing something here.
I hope someone can point me into the right direction.
Best regards,
Peter