Hi,
below is a stripped down version of my rowdetail editor using a raddataform with a rowdetails template.
I tried adding CommandButtonsVisibility="All" but it did nothing. I want to show add, delete, edit etc. I'm only getting the edit button.
Some more issues.
1. The OK and Cancel Buttons are not picking up the global button style I have set in app.xaml.
2. Is it possible to have the OK button fire the RowEditEnded event?
3. The cancel button does not cancel the changes made in the dataform. Changes made to the form are immediately reflected in the
RadGridView. I would have expected the cancel button to set things back to their original values. Am I missing something?
4. How do I get the radform to default to edit mode so that the user does not have to hit the edit button in the upper right corner first?
I've attached a screen shot.
Any help would be GREATLY appreciated.
Thanks ... Ed
<Grid.Resources>
<DataTemplate x:Key="RowDetailsTemplate">
<telerik:RadTabControl x:Name="SamplesTab" HorizontalAlignment="Left"
Margin="8" VerticalAlignment="Center">
<telerik:RadTabItem Header="Sample Details" DataContext="{Binding}">
<Grid Width="Auto" HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<telerik:DataFormDataField Grid.Row="0" Grid.Column="0"
Label="Client Sample Id:"
DataMemberBinding="{Binding Sample.ClientSampleID, Mode=TwoWay }"
VerticalAlignment="Top" />
<telerik:DataFormComboBoxField Grid.Row="1" Grid.Column="0" Label="Priority:"
ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type UserControl} },
Path=DataContext.Priorities}"
DisplayMemberPath="Value"
SelectedValuePath="Key"
DataMemberBinding="{Binding Sample.PriorityID, Mode=TwoWay }">
</telerik:DataFormComboBoxField>
</Grid>
</telerik:RadTabItem>
</telerik:RadTabControl>
</DataTemplate>
</Grid.Resources>
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<telerik:RadDataForm CurrentItem="{Binding}" AutoGenerateFields="False"
EditTemplate="{StaticResource RowDetailsTemplate}"
NewItemTemplate="{StaticResource RowDetailsTemplate}"
ReadOnlyTemplate="{StaticResource RowDetailsTemplate}"
/>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>