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

RadGridViewCommands.BeginInsert appears not to be working in latest version

1 Answer 243 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mat Guthrie
Top achievements
Rank 1
Mat Guthrie asked on 16 Jun 2011, 01:49 AM
Hi,

I am using a button with a command that call RadGridViewCommands.BeginInsert. It was working correctly on the Q3 version but since upgrading to 2011.1.530.10 of the GridView assembly it is no longer working. When I load the form the button is disable. Similarly, if I set ShowInsertRow to true the link appears but it doesn't insert an empty row. When I encountered a similar problem before it was becauise the bound object didn't have a default constructor, but in this case the object does.

 

   
<telerik:RadButton Content="NEW TASK" Padding="10,0" Margin="3,3" FontSize="10" Command="telerikGrid:RadGridViewCommands.BeginInsert" CommandTarget="{Binding ElementName=TasksGrid}" />  
  
<telerik:RadGridView Grid.Row="1" Name="TasksGrid" ItemsSource="{Binding Items}" AutoGenerateColumns="False" ScrollMode="RealTime" VerticalAlignment="Stretch" HorizontalAlignment
="Stretch" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" ValidatesOnDataErrors="InEditMode" IsSynchronizedWithCurrentItem="True" AlternationCount="2"

 

 

.....

Any assisance would be appreciated.

Regards

Mat

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 16 Jun 2011, 07:05 AM
Hello Mat Guthrie,

I tried to reproduce the problem but it seems that there is not problem with this functionality. I have attached my test project. 

Best wishes,
Milan
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
Mat Guthrie
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or