New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

RadDataForm is designed to give your the freedom to specify predefined or customized type of layout for the items displayed in the control and in the same time gives you integrated paging and editing. You can embed various controls of your choice in RadDataForm's templates and model their appearance in a custom manner. Thanks to its innovative architecture RadDataForm is extremely fast and generates very little output.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[ToolboxBitmap(typeof(RadDataForm), "Toolbox.Icons.DataForm.png")]
[ControlValueProperty("SelectedValue")]
[ClientScriptResource("Telerik.Web.UI.RadDataForm", "Telerik.Web.UI.DataForm.RadDataFormScripts.js")]
[TelerikToolboxCategory("Data")]
[EmbeddedSkin("DataForm", typeof(RadDataForm))]
[EmbeddedSkin("DataForm", "Default", typeof(RadDataForm))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadDataForm))]
public class RadDataForm : RadCompositeDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, IRadPageableItemContainer, IPostBackEventHandler, IPageableItemContainer

Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlCompositeDataBoundControlRadCompositeDataBoundControlRadDataForm...

Implements: IAttributeAccessorIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIFeatureGroupINamingContainerIPageableItemContainerIParserAccessorIPostBackDataHandlerIPostBackEventHandlerIRadPageableItemContainerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members CompositeDataBoundControl.IsUsingModelBindersCompositeDataBoundControl.ControlsDataBoundControl.OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)DataBoundControl.GetDataSource()DataBoundControl.MarkAsDataBound()DataBoundControl.OnDataPropertyChanged()DataBoundControl.ValidateDataSource(object)DataBoundControl.DataMemberDataBoundControl.ItemTypeDataBoundControl.SelectMethodDataBoundControl.DataSourceIDDataBoundControl.DataSourceObjectDataBoundControl.SelectArgumentsDataBoundControl.CreatingModelDataSourceDataBoundControl.CallingDataMethodsBaseDataBoundControl.ConfirmInitState()BaseDataBoundControl.EnsureDataBound()BaseDataBoundControl.OnDataBound(EventArgs)BaseDataBoundControl.DataSourceBaseDataBoundControl.InitializedBaseDataBoundControl.IsBoundUsingDataSourceIDBaseDataBoundControl.IsDataBindingAutomaticBaseDataBoundControl.SupportsDisabledAttributeBaseDataBoundControl.RequiresDataBindingBaseDataBoundControl.DataBoundWebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.MergeStyle(Style)WebControl.RenderEndTag(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.MapPathSecure(string)Control.OpenFile(string)Control.BuildProfileTree(string, bool)Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadDataForm()

Fields

C#
public const string CancelCommandName = "Cancel"
C#
public const string DeleteCommandName = "Delete"
C#
public const string EditCommandName = "Edit"
C#
public const string InitInsertCommandName = "InitInsert"
C#
public const string PageCommandName = "Page"
C#
public const string PerformInsertCommandName = "PerformInsert"
C#
public const string RebindDataFormCommandName = "RebindDataForm"
C#
public const string UpdateCommandName = "Update"

Properties

Gets or sets ID of RadClientDataSource control that to be used for client side binding

C#
public string ClientDataSourceID { get; set; }

Gets a reference to the RadDataFormClientSettings object that allows you to set the properties of the client-side behavior and appearance in a Telerik RadDataForm control.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadDataFormClientSettings ClientSettings { get; }

Gets or sets a value that indicates whether empty string values ("") are automatically converted to null values when the data field is updated in the data source.

C#
public virtual bool ConvertEmptyStringToNull { get; set; }
C#
protected IEnumerable CurrentDataSource { get; set; }

Gets or sets a value indicating the index of the currently active page in case paging is enabled (AllowPaging is true).

C#
[Bindable(true)]
[Browsable(false)]
public int CurrentPageIndex { get; set; }
Property Value:

The index of the currently active page in case paging is enabled.

Exceptions: ArgumentOutOfRangeException

value is out of range.

Gets or sets an array of data-field names that will be used to populate the DataKeyValues collection, when the RadDataFormcontrol is databinding.

C#
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[TypeConverter(typeof(RadDataFormStringArrayConverter))]
public virtual string[] DataKeyNames { get; set; }

Gets collection of data key values.

C#
[Browsable(false)]
public virtual RadDataFormDataKeyArray DataKeyValues { get; }
Property Value:

The collection of data key values.

C#
public int DataSourceCount { get; }

Gets or sets the name of the method to call in order to delete data

C#
public string DeleteMethod { get; set; }

Gets the edit indexes which represent the indexes of the items that are currenly in edit mode.

C#
[Browsable(false)]
public int EditIndex { get; set; }
Property Value:

The edit indexes which represent the indexes of the items that are currenly in edit mode.

Gets or sets the custom content for the item in edit mode.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(RadDataFormDataItem), BindingDirection.TwoWay)]
public virtual ITemplate EditItemTemplate { get; set; }
Property Value:

An object that contains the custom content for the item in edit mode. The default is null, which indicates that this property is not set.

Gets or sets the Template that will be displayed if there are no records in the DataSource assigned.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(RadDataForm))]
public virtual ITemplate EmptyDataTemplate { get; set; }

Gets the insert item of a RadDataForm control.

C#
[Browsable(false)]
public RadDataFormInsertItem InsertItem { get; protected set; }

Gets or sets the location of the InsertItemTemplate template when it is rendered as part of the RadDataForm control.

C#
public virtual RadDataFormInsertItemPosition InsertItemPosition { get; set; }

Gets or sets the custom content for an insert item in the RadDataForm control.

C#
[TemplateContainer(typeof(RadDataFormDataItem), BindingDirection.TwoWay)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
public virtual ITemplate InsertItemTemplate { get; set; }

Gets or sets the name of the method to call in order to insert data

C#
public string InsertMethod { get; set; }
C#
protected bool IsBoundToIQueryableCollection { get; }
C#
protected bool IsDataBinding { get; set; }
C#
protected bool IsEnityDataSourceView { get; }

Gets or sets a value indicating if the RadDataForm is currently in insert mode.

C#
[Browsable(false)]
public bool IsItemInserted { get; set; }
Property Value:

true, if the RadDataForm is currently in insert mode; otherwise, false.

The ItemInserted property indicates if the RadDataForm is currently in insert mode. After setting it you should call the Rebind() method.

C#
protected bool IsLinqDataSourceView { get; }
C#
protected bool IsModelValid { get; set; }
C#
protected bool IsNeedDataSourceInProgress { get; set; }
C#
protected bool IsOpenAccessDataSourceView { get; }

Gets or sets the ID for the item placeholder in a RadDataForm control.

C#
public virtual string ItemPlaceholderID { get; set; }
Property Value:

The ID for the item placeholder in a RadDataForm control. The default is "itemPlaceholder".

Gets a collection of RadDataFormDataItem objects that represent the data items of the current page of data in a RadDataForm control.

C#
[Browsable(false)]
public virtual RadDataFormDataItemCollection Items { get; }

Gets or sets the custom content for the data item in a RadDataForm control.

C#
[TemplateContainer(typeof(RadDataFormDataItem), BindingDirection.TwoWay)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
public virtual ITemplate ItemTemplate { get; set; }

Gets or sets the custom content for the root container in a RadDataForm control.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(RadDataForm))]
public virtual ITemplate LayoutTemplate { get; set; }
C#
protected Control LayoutTemplateWrapper { get; set; }

Gets the number of pages required to display the records of the data source in a RadDataFormcontrol.

C#
[Browsable(false)]
public virtual int PageCount { get; }

RenderWrapper property determines if the LayoutTemplate should be wrapped inside Div element with ID of the DataForm

C#
public bool RenderWrapper { get; set; }

ResolvedDataSource

DataFormEnumerableBase

C#
protected virtual DataFormEnumerableBase ResolvedDataSource { get; }
Exceptions: InvalidOperationException

InvalidOperationException.

C#
protected virtual int StartRowIndex { get; }
C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadCompositeDataBoundControl.SupportsRenderingMode

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets the name of the method to call in order to update data

C#
public string UpdateMethod { get; set; }

Gets a reference to the RadDataFormValidationSettings object that allows you to set the properties of the validate operation in a RadDataForm control.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadDataFormValidationSettings ValidationSettings { get; }
C#
[Browsable(true)]
[Bindable(true)]
public virtual int VirtualItemCount { get; set; }
Exceptions: ArgumentOutOfRangeException

value is out of range.

Methods

C#
protected virtual void AddItemSeparatorToContainer(Control container, Control itemSeparatorContainer, int index)
Parameters:containerControlitemSeparatorContainerControlindexint
C#
protected virtual void AutoDataBind(RadDataFormRebindReason rebindReason)
Parameters:rebindReasonRadDataFormRebindReason
C#
protected void BuildInsertItem(Control itemsContainer, int controlIndex, bool dataBinding)
Parameters:itemsContainerControlcontrolIndexintdataBindingbool

Removes all edit items that belong to the RadDataForm instance.

C#
public void ClearEditItems()
C#
protected override void CreateChildControls()

Overrides: CompositeDataBoundControl.CreateChildControls()

When overridden in an abstract class, creates the control hierarchy that is used to render the composite data-bound control based on the values from the specified data source.

C#
protected override int CreateChildControls(IEnumerable dataSource, bool dataBinding)
Parameters:dataSourceIEnumerable

An IEnumerable that contains the values to bind to the control.

dataBindingbool

true to indicate that the CreateChildControls(IEnumerable, bool) is called during data binding; otherwise, false.

Returns:

int

The number of items created by the CreateChildControls(IEnumerable, bool) .

Exceptions: InvalidOperationException

The RadDataForm control does not have an item placeholder specified.

Overrides: RadCompositeDataBoundControl.CreateChildControls(IEnumerable, bool)

C#
protected virtual RadDataFormDataItem CreateDataItem(int displayIndex)
Parameters:displayIndexintReturns:

RadDataFormDataItem

C#
protected virtual int CreateDataItems(Control container, IEnumerable dataSource, bool dataBinding)
Parameters:containerControldataSourceIEnumerabledataBindingboolReturns:

int

Exceptions: InvalidOperationException

InvalidOperationException.

Creates a default DataSourceSelectArguments object used by the data-bound control if no arguments are specified.

C#
protected override DataSourceSelectArguments CreateDataSourceSelectArguments()
Returns:

DataSourceSelectArguments

A DataSourceSelectArguments initialized to Empty.

Overrides: DataBoundControl.CreateDataSourceSelectArguments()

C#
protected virtual void CreateEmptyDataItem(int dataItemsCount)
Parameters:dataItemsCountint
C#
protected virtual RadDataFormEmptyItem CreateEmptyItem()
Returns:

RadDataFormEmptyItem

C#
protected virtual RadDataFormItem CreateInsertItem()
Returns:

RadDataFormItem

Exceptions: InvalidOperationException

The RadDataForm control does not have an InsertItemTemplate template specified.

C#
public override void DataBind()
Exceptions: InvalidOperationException

You should not call DataBind in NeedDataSource event handler. DataBind would take place automatically right after NeedDataSource handler finishes execution.

Overrides: BaseDataBoundControl.DataBind()

C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadCompositeDataBoundControl.DescribeComponent(IScriptDescriptor)

C#
protected virtual void EnsureLayoutTemplate()

The passed IDictionary object (like Hashtable for example) will be filled with the names/values of the corresponding RadDataFormDataItem's bound values and data-key values if included.

C#
public virtual void ExtractValuesFromItem(IDictionary newValues, RadDataFormDataItem dataItem, bool includePrimaryKey)
Parameters:newValuesIDictionarydataItemRadDataFormDataItemincludePrimaryKeyboolExceptions: ArgumentNullException

dataItem is null.

ArgumentNullException

newValues is null.

C#
protected override DataSourceView GetData()
Returns:

DataSourceView

Overrides: DataBoundControl.GetData()

C#
protected virtual object GetDefaultInsertionObject()
Returns:

object

C#
protected override IEnumerable<ScriptReference> GetScriptReferences()
Returns:

IEnumerable<ScriptReference>

Overrides: RadCompositeDataBoundControl.GetScriptReferences()

C#
protected virtual void HandleClientFireCommand(string eventName, string eventArgs)
Parameters:eventNamestringeventArgsstring

Creates and instantiate layout template instance

C#
protected virtual int InitializeLayoutTemplate()
Returns:

int

Created controls count

C#
protected virtual void InstantiateInsertItemTemplate(Control container)
Parameters:containerControl
C#
public static bool IsBindableType(Type type)
Parameters:typeTypeReturns:

bool

Loads the client state data

C#
protected override bool LoadClientState(Dictionary<string, object> clientState)
Parameters:clientStateDictionary<string, object>Returns:

bool

Overrides: RadCompositeDataBoundControl.LoadClientState(Dictionary<string, object>)

Restores control-state information from a previous page request that was saved by the SaveControlState() method.

C#
protected override void LoadControlState(object savedState)
Parameters:savedStateobject

An object that represents the control state to be restored.

Overrides: Control.LoadControlState(object)

C#
protected virtual void LoadControlStateObject(object[] objArray1, int current)
Parameters:objArray1object[]currentint
C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

Overrides: DataBoundControl.LoadViewState(object)

C#
protected override bool OnBubbleEvent(object source, EventArgs args)
Parameters:sourceobjectargsEventArgsReturns:

bool

Overrides: Control.OnBubbleEvent(object, EventArgs)

C#
protected override void OnDataSourceViewChanged(object sender, EventArgs e)
Parameters:senderobjecteEventArgs

Overrides: DataBoundControl.OnDataSourceViewChanged(object, EventArgs)

Handles the Init event.

C#
protected override void OnInit(EventArgs e)
Parameters:eEventArgs

An EventArgs object that contains the event data.

Overrides: RadCompositeDataBoundControl.OnInit(EventArgs)

Raises the ItemUpdating event.

C#
protected virtual void OnItemCanceling(RadDataFormCommandEventArgs e)
Parameters:eRadDataFormCommandEventArgs

Raises ItemCommand event

C#
protected virtual void OnItemCommand(RadDataFormCommandEventArgs e)
Parameters:eRadDataFormCommandEventArgs

Raises ItemCreated event

C#
protected virtual void OnItemCreated(RadDataFormItemEventArgs e)
Parameters:eRadDataFormItemEventArgs

Raises ItemDataBound event

C#
protected virtual void OnItemDataBound(RadDataFormItemEventArgs e)
Parameters:eRadDataFormItemEventArgs

Raises the ItemDeleted event.

C#
protected virtual void OnItemDeleted(RadDataFormDeletedEventArgs e)
Parameters:eRadDataFormDeletedEventArgs
C#
protected virtual void OnItemDeleting(RadDataFormCommandEventArgs e)
Parameters:eRadDataFormCommandEventArgs
C#
protected virtual void OnItemEditing(RadDataFormCommandEventArgs e)
Parameters:eRadDataFormCommandEventArgs
C#
protected virtual void OnItemInserted(RadDataFormInsertedEventArgs e)
Parameters:eRadDataFormInsertedEventArgs
C#
protected virtual void OnItemInserting(RadDataFormCommandEventArgs e)
Parameters:eRadDataFormCommandEventArgs

Raises the ItemUpdated event.

C#
protected virtual void OnItemUpdated(RadDataFormUpdatedEventArgs e)
Parameters:eRadDataFormUpdatedEventArgs

Raises the ItemUpdating event.

C#
protected virtual void OnItemUpdating(RadDataFormCommandEventArgs e)
Parameters:eRadDataFormCommandEventArgs
C#
protected virtual void OnLayoutCreated(EventArgs e)
Parameters:eEventArgs

Handles the Load event.

C#
protected override void OnLoad(EventArgs e)
Parameters:eEventArgs

An EventArgs object that contains event data.

Overrides: DataBoundControl.OnLoad(EventArgs)

Raises NeedDataSource event

C#
protected virtual void OnNeedDataSource(RadDataFormNeedDataSourceEventArgs e)
Parameters:eRadDataFormNeedDataSourceEventArgs
C#
protected virtual void OnPageIndexChanged(RadDataFormPageChangedEventArgs e)
Parameters:eRadDataFormPageChangedEventArgs
C#
protected override void OnPagePreLoad(object sender, EventArgs e)
Parameters:senderobjecteEventArgs

Overrides: DataBoundControl.OnPagePreLoad(object, EventArgs)

C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadCompositeDataBoundControl.OnPreRender(EventArgs)

C#
protected virtual void OnTotalRowCountAvailable(RadDataPagerPageEventArgs e)
Parameters:eRadDataPagerPageEventArgs

Binds the data from the data source to the composite data-bound control.

C#
protected override void PerformDataBinding(IEnumerable data)
Parameters:dataIEnumerable

An IEnumerable that contains the values to bind to the composite data-bound control.

Overrides: CompositeDataBoundControl.PerformDataBinding(IEnumerable)

Perform delete operation, using the DataSourceControl API. Please make sure you have specified the correct DataKeyNames for the RadDataForm.

C#
public virtual void PerformDelete(RadDataFormDataItem editedItem, bool suppressRebind)
Parameters:editedItemRadDataFormDataItemsuppressRebindbool

Perform asynchronous delete operation

C#
public virtual void PerformDelete(RadDataFormDataItem editedItem)
Parameters:editedItemRadDataFormDataItem

Performs asynchronous insert operation, using the DataSourceControl API, then Rebinds. When the asynchronous operation calls back, RadDataForm will fire ItemInserted event.

C#
public virtual void PerformInsert()
Exceptions: InvalidOperationException

Insert item is available only when RadDataForm is in insert mode.

Performs asynchronous insert operation, using the DataSourceControl API, then Rebinds. When the asynchronous operation calls back, RadDataForm will fire ItemInserted event.

C#
public virtual void PerformInsert(RadDataFormInsertItem insertItem, bool suppressRebind)
Parameters:insertItemRadDataFormInsertItemsuppressRebindboolExceptions: ArgumentNullException

insertItem is null.

C#
protected override void PerformSelect()

Overrides: DataBoundControl.PerformSelect()

Perform asynchronous update operation, using the DataSource control API. Please make sure you have specified the correct DataKeyNames for the RadDataForm. When the asynchronous operation calls back, RadDataForm will fire ItemUpdated event. The boolean property defines if RadDataForm will Rebind() after the update.

C#
public virtual void PerformUpdate(RadDataFormDataItem editedItem, bool suppressRebind)
Parameters:editedItemRadDataFormDataItemsuppressRebindboolExceptions: ArgumentNullException

editedItem is null.

Perform asynchronous update operation, using the DataSource control API and the Rebind method. Please, make sure you have specified the correct DataKeyNames for the RadDataForm. When the asynchronous operation calls back, RadDataForm will fire ItemUpdated event.

C#
public void PerformUpdate(RadDataFormDataItem editedItem)
Parameters:editedItemRadDataFormDataItem
C#
protected void PopulateDataKeys(object dataItem)
Parameters:dataItemobjectExceptions: ArgumentException

There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource.

C#
protected virtual void PrepareDataSource()
C#
protected virtual int PrepareItemContainer(Control container, bool isGroupContainer, Action<Control> retrieveItemPlaceHolderParentControl, string groupPlaceholderID)
Parameters:containerControlisGroupContainerboolretrieveItemPlaceHolderParentControlAction<Control>groupPlaceholderIDstringReturns:

int

C#
public virtual void RaisePostBackEvent(string eventArgument)
Parameters:eventArgumentstring

Implements: IPostBackEventHandler.RaisePostBackEvent(string)

Rebinds this instance and updates the RadDataForm.

C#
public virtual void Rebind()
C#
protected virtual void RemoveItems()

Renders the RadDataForm to the specified HTML writer.

C#
protected override void Render(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter object that receives the control content.

Overrides: RadCompositeDataBoundControl.Render(HtmlTextWriter)

C#
public override void RenderBeginTag(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadCompositeDataBoundControl.RenderBeginTag(HtmlTextWriter)

C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadCompositeDataBoundControl.RenderContents(HtmlTextWriter)

C#
protected virtual Control RetrivePlaceHolderControl(Control container, string placeholderId)
Parameters:containerControlplaceholderIdstringReturns:

Control

Exceptions: InvalidOperationException

The RadDataForm control does not have an item placeholder specified.

Saves any RadDataForm control state changes that have occurred since the time the page was posted back to the server.

C#
protected override object SaveControlState()
Returns:

object

Returns the RadDataForm's current state. If there is no state associated with the control, this method returns null.

Overrides: Control.SaveControlState()

C#
protected virtual void SaveControlStateObject(IList state)
Parameters:stateIList
C#
protected override object SaveViewState()
Returns:

object

Overrides: DataBoundControl.SaveViewState()

C#
protected virtual void SetPageProperties(int startRowIndex, int maximumRows, bool databind)
Parameters:startRowIndexintmaximumRowsintdatabindboolExceptions: ArgumentOutOfRangeException

maximumRows is out of range.

ArgumentOutOfRangeException

startRowIndex is out of range.

Places the RadDataForm in insert mode, allowing user to insert a new data-item values.

C#
public virtual void ShowInsertItem()

Places the RadDataForm in insert mode, allowing user to insert a new data-item values. The InsertItem created will be bound to values found in defaultValues dictionary;

C#
public virtual void ShowInsertItem(IDictionary defaultValues)
Parameters:defaultValuesIDictionary

values with which InsertItem will be populated

Places the RadDataForm in insert mode, allowing user to insert a new data-item values. The InsertItem created will be bound to the provided object;

C#
public virtual void ShowInsertItem(object dataItem)
Parameters:dataItemobject

object to which InsertItem will be bound

Places the RadDataForm in insert mode, allowing user to insert a new data-item values. The InsertItem created will be bound to values found in defaultValues dictionary;

C#
public virtual void ShowInsertItem(RadDataFormInsertItemPosition itemPosition, IDictionary defaultValues)
Parameters:itemPositionRadDataFormInsertItemPosition

position at which the insertItem will be shown

defaultValuesIDictionary

values with which InsertItem will be populated

Places the RadDataForm in insert mode, allowing user to insert a new data-item values. The InsertItem created will be bound to the provided object;

C#
public virtual void ShowInsertItem(RadDataFormInsertItemPosition itemPosition, object dataItem)
Parameters:itemPositionRadDataFormInsertItemPosition

position at which the insertItem will be shown

dataItemobject

object to which InsertItem will be bound

Places the RadDataForm in insert mode, allowing user to insert a new data-item values.

C#
public virtual void ShowInsertItem(RadDataFormInsertItemPosition itemPosition)
Parameters:itemPositionRadDataFormInsertItemPosition
C#
protected override void TrackViewState()

Overrides: DataBoundControl.TrackViewState()

Events

Occurs when the Cancel command is fired from any RadDataFormDataItem

C#
public event EventHandler<RadDataFormCommandEventArgs> ItemCanceling

Raised when a button in a RadDataForm control is clicked.

C#
public event EventHandler<RadDataFormCommandEventArgs> ItemCommand

Raised when RadDataFormItem is created

C#
public event EventHandler<RadDataFormItemEventArgs> ItemCreated

Raised when RadDataFormItem is data bound

C#
public event EventHandler<RadDataFormItemEventArgs> ItemDataBound

Occurs when a delete operation is requested, after the RadDataForm control deletes the item.

C#
public event EventHandler<RadDataFormDeletedEventArgs> ItemDeleted

Occurs when a delete operation is requested, but before the RadDataForm control deletes the item.

C#
public event EventHandler<RadDataFormCommandEventArgs> ItemDeleting

Occurs when an edit operation is requested, but before the RadDataForm item is put in edit mode

C#
public event EventHandler<RadDataFormCommandEventArgs> ItemEditing

Occurs when an insert operation is requested, after the RadDataForm control has inserted the item in the data source.

C#
public event EventHandler<RadDataFormInsertedEventArgs> ItemInserted

Occurs when an insert operation is requested, but before the RadDataForm control performs the insert.

C#
public event EventHandler<RadDataFormCommandEventArgs> ItemInserting

Occurs when the Update command is fired from any RadDataFormDataItem

C#
public event EventHandler<RadDataFormUpdatedEventArgs> ItemUpdated

Occurs when the Update command is fired from any RadDataFormDataItem

C#
public event EventHandler<RadDataFormCommandEventArgs> ItemUpdating

Raised when LayoutTemplate is created

C#
public event EventHandler<EventArgs> LayoutCreated

Raised when the RadDataForm is about to be bound and the data source must be assigned.

C#
public event EventHandler<RadDataFormNeedDataSourceEventArgs> NeedDataSource

Fires when a paging action has been performed.

C#
public event EventHandler<RadDataFormPageChangedEventArgs> PageIndexChanged
In this article
DefinitionConstructorsRadDataForm()FieldsCancelCommandNameDeleteCommandNameEditCommandNameInitInsertCommandNamePageCommandNamePerformInsertCommandNameRebindDataFormCommandNameUpdateCommandNamePropertiesClientDataSourceIDClientSettingsConvertEmptyStringToNullCurrentDataSourceCurrentPageIndexDataKeyNamesDataKeyValuesDataSourceCountDeleteMethodEditIndexEditItemTemplateEmptyDataTemplateInsertItemInsertItemPositionInsertItemTemplateInsertMethodIsBoundToIQueryableCollectionIsDataBindingIsEnityDataSourceViewIsItemInsertedIsLinqDataSourceViewIsModelValidIsNeedDataSourceInProgressIsOpenAccessDataSourceViewItemPlaceholderIDItemsItemTemplateLayoutTemplateLayoutTemplateWrapperPageCountRenderWrapperResolvedDataSourceStartRowIndexSupportsRenderingModeTagKeyUpdateMethodValidationSettingsVirtualItemCountMethodsAddItemSeparatorToContainer(Control, Control, int)AutoDataBind(RadDataFormRebindReason)BuildInsertItem(Control, int, bool)ClearEditItems()CreateChildControls()CreateChildControls(IEnumerable, bool)CreateDataItem(int)CreateDataItems(Control, IEnumerable, bool)CreateDataSourceSelectArguments()CreateEmptyDataItem(int)CreateEmptyItem()CreateInsertItem()DataBind()DescribeComponent(IScriptDescriptor)EnsureLayoutTemplate()ExtractValuesFromItem(IDictionary, RadDataFormDataItem, bool)GetData()GetDefaultInsertionObject()GetScriptReferences()HandleClientFireCommand(string, string)InitializeLayoutTemplate()InstantiateInsertItemTemplate(Control)IsBindableType(Type)LoadClientState(Dictionary<string, object>)LoadControlState(object)LoadControlStateObject(object[], int)LoadViewState(object)OnBubbleEvent(object, EventArgs)OnDataSourceViewChanged(object, EventArgs)OnInit(EventArgs)OnItemCanceling(RadDataFormCommandEventArgs)OnItemCommand(RadDataFormCommandEventArgs)OnItemCreated(RadDataFormItemEventArgs)OnItemDataBound(RadDataFormItemEventArgs)OnItemDeleted(RadDataFormDeletedEventArgs)OnItemDeleting(RadDataFormCommandEventArgs)OnItemEditing(RadDataFormCommandEventArgs)OnItemInserted(RadDataFormInsertedEventArgs)OnItemInserting(RadDataFormCommandEventArgs)OnItemUpdated(RadDataFormUpdatedEventArgs)OnItemUpdating(RadDataFormCommandEventArgs)OnLayoutCreated(EventArgs)OnLoad(EventArgs)OnNeedDataSource(RadDataFormNeedDataSourceEventArgs)OnPageIndexChanged(RadDataFormPageChangedEventArgs)OnPagePreLoad(object, EventArgs)OnPreRender(EventArgs)OnTotalRowCountAvailable(RadDataPagerPageEventArgs)PerformDataBinding(IEnumerable)PerformDelete(RadDataFormDataItem, bool)PerformDelete(RadDataFormDataItem)PerformInsert()PerformInsert(RadDataFormInsertItem, bool)PerformSelect()PerformUpdate(RadDataFormDataItem, bool)PerformUpdate(RadDataFormDataItem)PopulateDataKeys(object)PrepareDataSource()PrepareItemContainer(Control, bool, Action<Control>, string)RaisePostBackEvent(string)Rebind()RemoveItems()Render(HtmlTextWriter)RenderBeginTag(HtmlTextWriter)RenderContents(HtmlTextWriter)RetrivePlaceHolderControl(Control, string)SaveControlState()SaveControlStateObject(IList)SaveViewState()SetPageProperties(int, int, bool)ShowInsertItem()ShowInsertItem(IDictionary)ShowInsertItem(object)ShowInsertItem(RadDataFormInsertItemPosition, IDictionary)ShowInsertItem(RadDataFormInsertItemPosition, object)ShowInsertItem(RadDataFormInsertItemPosition)TrackViewState()EventsItemCancelingItemCommandItemCreatedItemDataBoundItemDeletedItemDeletingItemEditingItemInsertedItemInsertingItemUpdatedItemUpdatingLayoutCreatedNeedDataSourcePageIndexChanged
Not finding the help you need?
Contact Support