On inheriting from "RadGridView" and overriding the "OnApplyTemplate" the only the first column is rendered.
Am I doing something wrong
namespace WpfApplication7 |
{ |
public class MyGrid : RadGridView |
{ |
public override void OnApplyTemplate() |
{ |
//Custom Code. |
} |
} |
} |
<Window x:Class="WpfApplication7.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:gridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" |
xmlns:local="clr-namespace:WpfApplication7" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="Window1" Height="300" Width="300"> |
<Grid> |
<local:MyGrid> |
<gridView:RadGridView.Columns> |
<gridView:GridViewColumn Header="Column1"/> |
<gridView:GridViewColumn Header="Column2"/> |
<gridView:GridViewColumn Header="Column3"/> |
<gridView:GridViewColumn Header="Column4"/> |
</gridView:RadGridView.Columns> |
</local:MyGrid> |
</Grid> |
</Window> |
Am I doing something wrong