Hi @ all,
In the last WPF build the DataForm control got changed (single, multiple editors).
But this change broke some other functionality of the control.
I attached a screenshot of small test project when using controls from version 2020.3.1020
And also the screenshot when using controls from version 2021.1.119
This is basically the XAML code I used for the view:
<Window x:Class="TelerikDataFormTest.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Width="525" Height="350"> <Window.Resources> <DataTemplate x:Key="DataFormEditTemplate"> <StackPanel Margin="10"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.5*" /> <ColumnDefinition Width="0.5*" /> </Grid.ColumnDefinitions> <StackPanel Grid.Column="0"> <telerik:DataFormDataField DataMemberBinding="{Binding DataName}" Label="Name" /> <telerik:DataFormDataField Label="Date"> <telerik:RadDatePicker SelectedValue="{Binding DataDate}" TodayButtonVisibility="Visible" /> </telerik:DataFormDataField> <telerik:DataFormDataField Label=" "> <telerik:RadButton Width="250" Margin="0,5,0,5" HorizontalAlignment="Left" Content="Test Button" /> </telerik:DataFormDataField> </StackPanel> <StackPanel Grid.Column="1"> <telerik:DataFormDataField DataMemberBinding="{Binding DataName}" Label="Name" /> <telerik:DataFormDataField Label="Date"> <telerik:RadDatePicker SelectedValue="{Binding DataDate}" TodayButtonVisibility="Visible" /> </telerik:DataFormDataField> <telerik:DataFormDataField Label=" "> <telerik:RadButton Width="250" Margin="0,5,0,5" HorizontalAlignment="Left" Content="Test Button" /> </telerik:DataFormDataField> </StackPanel> </Grid> </StackPanel> </DataTemplate> <DataTemplate x:Key="DataFormReadOnlyTemplate"> <StackPanel Margin="10"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.5*" /> <ColumnDefinition Width="0.5*" /> </Grid.ColumnDefinitions> <StackPanel Grid.Column="0"> <telerik:DataFormDataField DataMemberBinding="{Binding DataName}" Label="Name" /> <telerik:DataFormDataField Label="Date"> <telerik:RadDatePicker SelectedValue="{Binding DataDate}" TodayButtonVisibility="Visible" /> </telerik:DataFormDataField> <telerik:DataFormDataField Label=" "> <telerik:RadButton Width="150" Margin="0,5,0,5" HorizontalAlignment="Left" Content="Test Button" /> </telerik:DataFormDataField> </StackPanel> <StackPanel Grid.Column="1"> <telerik:DataFormDataField DataMemberBinding="{Binding DataName}" Label="Name" /> <telerik:DataFormDataField Label="Date"> <telerik:RadDatePicker SelectedValue="{Binding DataDate}" TodayButtonVisibility="Visible" /> </telerik:DataFormDataField> <telerik:DataFormDataField Label=" "> <StackPanel> <telerik:RadButton Width="150" Margin="0,5,0,5" HorizontalAlignment="Left" Content="Test Button" /> </StackPanel> </telerik:DataFormDataField> </StackPanel> </Grid> </StackPanel> </DataTemplate> </Window.Resources> <Grid> <telerik:RadDataForm Width="400" Height="300" HorizontalAlignment="Left" VerticalAlignment="Top" AutoEdit="True" AutoGenerateFields="False" CurrentItem="{Binding Data}" EditTemplate="{StaticResource DataFormEditTemplate}" ReadOnlyTemplate="{StaticResource DataFormReadOnlyTemplate}" /> </Grid></Window>Until the change this worked for years now and is also used in our projects.
The question is: Is this a bug or a wanted behaviour of this control.
If there won't be a chance to use the old setting somehow we're stuck with the old version from now on.
I'm really looking forward to your suggestion on this topic.
Kind Regards,
Thomas
