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

Silverlight4 OOB adding new row error

1 Answer 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott Lance
Top achievements
Rank 1
Scott Lance asked on 15 Jul 2010, 07:02 PM

In OOB using RadGridView with List<> as Itemsource and ShowInsertRow="True"
Once add new is clicked new row is displayed.  Insert data to column(s) and once enter is pressed entire panel goes white. 
This happens only in OOB mode.

Not sure what I'm doing wrong.

 

xmlns

 

 

:gridview="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

 

 

<gridview:RadGridView x:Name="RadGridView_Excavation" Margin="1,0" RowIndicatorVisibility="Collapsed" IsReadOnly="False" AutoGenerateColumns="True" CanUserFreezeColumns="False" CanUserResizeColumns="False" AllowDrop="False" ShowGroupPanel="False" ShowInsertRow="True">
<gridview:RadGridView.RowStyle><Style TargetType="gridview:RadGridView"><Setter Property="MinHeight" Value="40"/></Style></gridview:RadGridView.RowStyle><gridview:RadGridView.Columns><gridview:GridViewToggleRowDetailsColumn /></gridview:RadGridView.Columns></gridview:RadGridView>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 16 Jul 2010, 09:18 AM
Hello Scott Lance,

The problem comes from wrong TargetType for the defined RowStyle. Please set TargetType="GridViewRow" 

<gridview:RadGridView.RowStyle><Style TargetType="gridview:RadGridView"><Setter Property="MinHeight" Value="40"/></Style></gridview:RadGridView.RowStyle>

I hope this will help.

All the best,
Yordanka
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
Scott Lance
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or