Hi to all, I set the ShowInsertRow to true, but at runtime the new row isn't show.
I try to set the same ItemSource in a standard WPF toolkit datagrid and the new row works fine.
Am I missing something ?
XAML
C#
WebRoles class
I try to set the same ItemSource in a standard WPF toolkit datagrid and the new row works fine.
Am I missing something ?
XAML
<telerik:RadExpander Header=".: Web Roles :." Margin="7,150,9,223" IsExpanded="True"> <telerik:GridViewDataControl x:Name="gvdWebroles" IsFilteringAllowed="False" ShowGroupPanel="False" RowHeight="24" Height="192" VerticalAlignment="Top" AutoGenerateColumns="False" ShowInsertRow="True" RowDetailsVisibilityMode="Visible"> <telerik:GridViewDataControl.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name data" MinWidth="400"/> <telerik:GridViewCheckBoxColumn AutoSelectOnEdit="True" DataMemberBinding="{Binding EnableNativeCode}" Header="Enable Native Code" IsThreeState="False" MinWidth="100" ShowFieldFilters="False" IsGroupable="False" IsFilterable="False" ShowDistinctFilters="False" TextAlignment="Center" /> </telerik:GridViewDataControl.Columns> </telerik:GridViewDataControl> </telerik:RadExpander>C#
gvdWebroles.ItemsSource = this.m_deploy.ServiceDefinition.WebRoles;WebRoles class
public class AzureWebRole { public string Name { get; set; } public bool EnableNativeCode { get; set; } public List<AzureWebRoleInputEndPoint> InputEndPoints { get; set; } public AzureWebRole() { this.Name = "DefaultWebRole"; this.EnableNativeCode = true; this.InputEndPoints = new List<AzureWebRoleInputEndPoint>(); AzureWebRoleInputEndPoint defaultEP = new AzureWebRoleInputEndPoint(); this.InputEndPoints.Add(defaultEP); } }