Setting the Content property of DataFormDataField in the AutoGeneratingField event handler doesn't take any effect. The value should be displayed in the editor area of the data field.
Use manually defined data fields or use a dispatcher in the AutoGeneratingField event handler in order to delay the Content setting.
Setting the Content property of DataFormDataField doesn't take any effect. The value should be displayed in the editor are of the data field.
To work this around, you can use a custom data field.
public class CustomDataFormDataField : DataFormDataField
{
protected override Control GetControl()
{
if (this.Content != null)
{
return this.Content as Control;
}
return base.GetControl();
}
}
Reproducible only in .Net 4.5.
// Telerik.Windows.Controls.RadDataForm private void OnCurrentItemPropertyChanged(object sender, PropertyChangedEventArgs e) { if (sender != null) { // this causes the exception when called from non-UI thread // use Dispatcher.Invoke this.IsItemChanged = true; } Available in LIB version: 2017.2.529
The fix will be available with LIB version 2015.2.817.
Resolved with LIB version 2014.1.602.