Completed
Last Updated: 15 Feb 2021 07:54 by ADMIN
Release LIB 2021.1.215 (2/15/2021)
Martin Ivanov
Created on: 08 Feb 2021 14:54
Category: DataForm
Type: Bug Report
1
DataForm: The elements in the Content property of DataFormDataField are not displayed in the view

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

0 comments