The following code works perfectly in version 1304 and previous builds
where in the viewmodel Period is a simple DateTime property and PeriodFormatted is a specially formatted string representation of the Period.
Up to v.1304 when adding a new row, the value supplied by the GridView to the textbox in the cell edit template is a string value, but in v1314 the value supplied to the textbox is a DateTime value. When editing an existing row, the value supplied to the textbox is a string value.
I have had to revert to version 1304, since this new behaviour has completely broken my entire application!
You guys also made a change a few versions ago to the behaviour of the Enter key in the GridView. The form has a button set to IsDefault=true. Up until a few versions ago (I can't remember exactly which), pressing Enter in the GridView would commit the edit and pressing Enter again would be consumed by the button on the form. In the latest versions, pressing Enter in the GridView is no longer consumed by the grid, but by the form button.
So instead of comitting the line details with Enter, the form re-loads the original data! I have worked around this simply by removing the IsDefault=true from the form button, but it now needs the user to select the button with the mouse.
Is there any way to get back to the previous behaviour?
I think your products are marvellous and I use a number of your controls extensively throughout my projects. However, it is VERY frustrating when you break behaviour from previous builds - and the readme does not clearly state what has broken.
Regards
Jeremy
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Period}"
Header
=
"Period"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding PeriodFormatted}"
/>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
<
telerik:GridViewColumn.CellEditTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding Path=PeriodFormatted, Mode=TwoWay}"
/>
</
DataTemplate
>
</
telerik:GridViewColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>
where in the viewmodel Period is a simple DateTime property and PeriodFormatted is a specially formatted string representation of the Period.
public string PeriodFormatted
{
get { return Period.PeriodToString(); }
set
{
Period = value.StringToPeriod(ContractHeader.Date);
SendPropertyChanged("PeriodFormatted");
}
}
Up to v.1304 when adding a new row, the value supplied by the GridView to the textbox in the cell edit template is a string value, but in v1314 the value supplied to the textbox is a DateTime value. When editing an existing row, the value supplied to the textbox is a string value.
I have had to revert to version 1304, since this new behaviour has completely broken my entire application!
You guys also made a change a few versions ago to the behaviour of the Enter key in the GridView. The form has a button set to IsDefault=true. Up until a few versions ago (I can't remember exactly which), pressing Enter in the GridView would commit the edit and pressing Enter again would be consumed by the button on the form. In the latest versions, pressing Enter in the GridView is no longer consumed by the grid, but by the form button.
So instead of comitting the line details with Enter, the form re-loads the original data! I have worked around this simply by removing the IsDefault=true from the form button, but it now needs the user to select the button with the mouse.
Is there any way to get back to the previous behaviour?
I think your products are marvellous and I use a number of your controls extensively throughout my projects. However, it is VERY frustrating when you break behaviour from previous builds - and the readme does not clearly state what has broken.
Regards
Jeremy