This question is locked. New answers and comments are not allowed.
I am finding unusual behavior in using the DataForm in conjunction with the RadGridView.
First, I bind my RadGridView to a different IEnumberable from my ViewModel:
Then I use the DataForm as a RowDetailsTemplate
What happens next is the strange part.
In one page - it works as expected for both adding and editing rows.
In the next page - editing a row works fine, but new rows just disappear
In a third example - adding a row and editing a row both save the new/chaged data, but the added row will not refresh that area of the screen, so it looks like the new row did not collapse.
Any thoughts or ideas?
First, I bind my RadGridView to a different IEnumberable from my ViewModel:
public IEnumerable<SubRegionFactor> SubRegionFactors { get { return RIAService_Main_MSWPW.SubRegionFactors; } }<telerik:RadGridView Grid.Row="1" x:Name="domainListEditor" IsReadOnly="False" ItemsSource="{Binding SubRegionFactors}" CanUserFreezeColumns="False" RowIndicatorVisibility="Visible" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CanUserInsertRows="True" RowDetailsVisibilityMode="VisibleWhenSelected" AutoGenerateColumns="false" ShowInsertRow="True" AddingNewDataItem="domainListEditor_addRow" RowEditEnded="domainListEditor_RowEditEnded" SelectionChanged="domainListEditor_SelectionChanged">Then I use the DataForm as a RowDetailsTemplate
<telerik:RadGridView.RowDetailsTemplate> <DataTemplate> <telerikDataForm:RadDataForm x:Name="domainListDataForm" CurrentItem="{Binding}" Header="Edit Settings:" AutoGeneratingField="DomainList_AutoGeneratingField" Width="600"/> </DataTemplate> </telerik:RadGridView.RowDetailsTemplate>What happens next is the strange part.
In one page - it works as expected for both adding and editing rows.
In the next page - editing a row works fine, but new rows just disappear
In a third example - adding a row and editing a row both save the new/chaged data, but the added row will not refresh that area of the screen, so it looks like the new row did not collapse.
Any thoughts or ideas?