Hi,,
I have a GridView binded to a DomainDataSource..(RIA)
The problem is that it does not add a new row on the grid.. (If I remove the e.newObject=NewUnidad I can see a new empty row)
Is this a Bug? Or I'm doing something wrong?
Also, Do you see another solution for "Required" Fields on RIA ???
I'm using SL4 with RadControls 00478RadControls_for_Silverlight4RC_2010_1_0319_Dev
Thanks!
I have a GridView binded to a DomainDataSource..(RIA)
<telerikGridView:RadGridView ItemsSource="{Binding ElementName=UNIDADDomainDataSource, Path=Data}" |
I have also a Field that I have declared as "Required" but is not showed as a column on the GRID so the validation of a new row always fails.
So one of the solution is to add a new row manualy:
Private Sub NewRecord_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) |
UNIDADRadGridView.IsReadOnly = False |
UNIDADRadGridView.BeginInsert() |
and then on the AddingNewDataItem set the default valued for the required Field:
Private Sub UNIDADRadGridView_AddingNewDataItem(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs) Handles UNIDADRadGridView.AddingNewDataItem |
Dim newUnidad As New UNIDAD() |
newUnidad.CODEMP = "1" |
e.NewObject = newUnidad |
End Sub |
Is this a Bug? Or I'm doing something wrong?
Also, Do you see another solution for "Required" Fields on RIA ???
I'm using SL4 with RadControls 00478RadControls_for_Silverlight4RC_2010_1_0319_Dev
Thanks!