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

Showinsertrow doesn't work

5 Answers 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Luca
Top achievements
Rank 1
Luca asked on 09 Nov 2010, 12:43 PM
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
<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);
        }
    }

5 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 09 Nov 2010, 12:46 PM
Hi Luca,

Please use telerik:RadGridView instead of telerik:GridViewDataControl.


All the best,
Veselin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Luca
Top achievements
Rank 1
answered on 09 Nov 2010, 04:16 PM
I did it and now I can see the insert row, but when I add a new row I'm getting an exception, see the image attached
0
Veselin Vasilev
Telerik team
answered on 10 Nov 2010, 08:43 AM
Hello Luca,

This is strange. I would ask you to send us a sample project which exhibits the problem. This will speed up the process of finding what is the problem.

Thanks

Regards,
Veselin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Luca
Top achievements
Rank 1
answered on 10 Nov 2010, 12:01 PM
I submit an issue with the solution attached.

Your ticket ID is : 365120


To reproduce the error, you need to insert a new row and then click on an existing one

thanks
0
Yavor Georgiev
Telerik team
answered on 10 Nov 2010, 12:14 PM
Hello Luca,

 The issue you are experiencing has been resolved after our Q3 Beta release. I tested your project with our final Q3 assemblies and everything works without crashes. Our Q3 release should appear on our website in the next couple of days. Please let me know if it fixes the issue on your end.

Greetings,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Luca
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Luca
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Share this question
or