In the Rolodex example RankEditor.xaml , it uses EditableRootListBase for RankList object with child Rank. I ran the example and tried to add a new rank to the list. It just added to the DataGrid in UI, but the new data never reach the database.
I also created my own EditableRootListBase for my silverlight application, and it acts the same as the example. I am just curious is it ever working?
<Button x:Name="NewButton" Content="New" Width="50" Margin="6,6,6,6" Grid.Row="1" HorizontalAlignment="Left"
csla:InvokeMethod.MethodName="AddNewItem"
csla:InvokeMethod.Resource="{StaticResource RanksData}"
csla:InvokeMethod.TriggerEvent="Click"
IsEnabled="{Binding Source={StaticResource RanksData}, Path=CanAddNewItem, Mode=OneWay}"/>
<Button x:Name="CloseButton" Content="Close" Width="50" Margin="6,6,6,6" HorizontalAlignment="Left" Click="CloseButton_Click"/>
The above code is from the Rolodex example. The AddNewItem seems not work properly. Or maybe I am missing something.
Thanks.
Copyright (c) Marimer LLC