This question is locked. New answers and comments are not allowed.
Hello. We are using RadControls for Silverlight Q3 2010. We are currently using the evaluation version but plan to purchase the full suite next month.
I am using a RadGridView. In summary, the problem is that when a row is inserted, we want that new row to be in edit mode. I'm not sure how to do this. The AddingNewDataItem event is not firing.
We have a button for them to add the new item to the grid. We do not allow them to use the insert key.
[Note: I have modified the names of our business objects for simplification.]
Here is the XAML for the grid.
Here is the XAML for the button:
In the View Model for the button's click event, we are doing this:
At the end of this function, a new foo has been added to my grid. However, it is not in edit mode. The goal is to get this new row in edit mode. Can you please advise me how to do this? Thanks for your help.
I am using a RadGridView. In summary, the problem is that when a row is inserted, we want that new row to be in edit mode. I'm not sure how to do this. The AddingNewDataItem event is not firing.
We have a button for them to add the new item to the grid. We do not allow them to use the insert key.
[Note: I have modified the names of our business objects for simplification.]
Here is the XAML for the grid.
<
telerik:RadGridView
x:Name
=
"FooGrid"
CanUserFreezeColumns
=
"False"
GridLinesVisibility
=
"Horizontal"
IsFilteringAllowed
=
"False"
ShowGroupPanel
=
"False"
ItemsSource
=
"{Binding CurrentParent.Foos, Mode=TwoWay}"
SelectedItem
=
"{Binding SelectedFoo, Mode=TwoWay}"
IsReadOnly
=
"False"
Width
=
"1000"
Margin
=
"0,10,0,0"
SelectionMode
=
"Single"
AutoGenerateColumns
=
"False"
>
Here is the XAML for the button:
<
telerik:RadButton
Content
=
"Add foo"
x:Name
=
"AddFooButton"
Margin
=
"10,0,0,0"
Command
=
"{Binding FooAddCommand}"
CommandParameter
=
"{Binding ElementName=FooGrid}"
VerticalAlignment
=
"Center"
/>
In the View Model for the button's click event, we are doing this:
Foo f = new Foo();
f.property1 = String.Empty;
f.property2 = String.Empty;
CurrentParent.Foos.Add(f);
At the end of this function, a new foo has been added to my grid. However, it is not in edit mode. The goal is to get this new row in edit mode. Can you please advise me how to do this? Thanks for your help.