Unplanned
Last Updated: 15 Sep 2025 10:01 by Martin Ivanov

The selection a RadComboBox hosted in RadDataForm gets cleared on commit changes. This happens when the RadComboBox is added in the EditTemplate and its IsEditable is set to True. Committing the edit clears the TextBox of the ComboBox, which clears the selection.

To work this around, subscribe to the EditEnding event of RadDataForm and clear the DataContext of the RadComboBox element.

  private void RadDataForm_EditEnding(object sender, Telerik.Windows.Controls.Data.DataForm.EditEndingEventArgs e)
  {
      var dataForm = (RadDataForm)sender;
      var myField = dataForm.ChildrenOfType<DataFormDataField>().FirstOrDefault(df => df.Name == "myField");
      if (myField != null)
      {
          var comboBox = (RadComboBox)myField.Content;
          comboBox.DataContext = null;
      }
  }

Completed
Last Updated: 01 Sep 2021 11:02 by ADMIN
Completed
Last Updated: 29 Mar 2021 05:48 by ADMIN
Release LIB 2021.1.329 (29/03/2021)

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.

Completed
Last Updated: 15 Feb 2021 07:54 by ADMIN
Release LIB 2021.1.215 (2/15/2021)

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();
	}
}

Completed
Last Updated: 04 Feb 2021 06:14 by ADMIN
Release LIB 2021.1.208 (2/8/2021)
When using a field without a RadDataForm, an null reference exception is thrown when it is focused. 
Completed
Last Updated: 06 Sep 2019 11:42 by ADMIN
Release R3 2019
Created by: Enrico
Comments: 1
Category: DataForm
Type: Feature Request
0

Good Morning,

It would be nice to have the possibility to choose if use DateTimePicker or DatePicker during the 'AutoGeneratingField' event.

Something like:

if (e.PropertyType.Equals(typeof(DateTime)))
            {
                e.DateTimeMode = ...RadDataForm.DateTimeMode.OnlyDate, //(or .DateTime) 
            }

Because overriding the 'DataFormField' content with a RadDateTimePicker is a little bit intricate especially for the binding/reference losing.

The control is very helpful to make fast user forms prototipe but in this case it lose all its convenience. 

 

Thank you,

Best Regards,

Enrico 

Declined
Last Updated: 04 Jun 2019 08:21 by ADMIN
ADMIN
Created by: Boris
Comments: 4
Category: DataForm
Type: Bug Report
1
Reproducible only in .Net 4.5. 
Completed
Last Updated: 20 Mar 2018 16:23 by ADMIN
// 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
Unplanned
Last Updated: 15 Feb 2017 10:35 by ADMIN
Unplanned
Last Updated: 08 Feb 2017 17:05 by ADMIN
Unplanned
Last Updated: 07 Dec 2016 09:20 by Tom
RadDataForm should support DataAnnotations validation attributes defined in MetadataType partial classes.
Completed
Last Updated: 13 Oct 2016 06:53 by Roar
ADMIN
Created by: Stefan Nenchev
Comments: 1
Category: DataForm
Type: Bug Report
1

			
Unplanned
Last Updated: 09 Aug 2016 08:48 by ADMIN
ADMIN
Created by: Boris
Comments: 0
Category: DataForm
Type: Bug Report
0

			
Unplanned
Last Updated: 09 Aug 2016 08:44 by ADMIN
Unplanned
Last Updated: 05 Aug 2016 14:49 by jen
Created by: jen
Comments: 1
Category: DataForm
Type: Feature Request
2
Since the EditEnding and EditEnded don't always get thrown when the dataform leaves the edit mode, it would be helpful to have an event thrown whenever the dataform's Mode Changes.


(this was already suggested an approved for the silverlight UI)
Unplanned
Last Updated: 03 Aug 2016 11:15 by ADMIN
ADMIN
Created by: Maya
Comments: 0
Category: DataForm
Type: Feature Request
1

			
Completed
Last Updated: 10 Jun 2016 08:34 by ADMIN
Allow the DataFormValidationSummary control to be used outside the context of RadDataForm.
Completed
Last Updated: 12 Aug 2015 13:54 by ADMIN
1 2