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

RadListView 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 sorting, paging, grouping, editing, selecting, etc. capabilities. You can embed various controls of your choice in RadListView's templates and model their appearance in a custom manner. Thanks to its innovative architecture RadListView is extremely fast and generates very little output.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

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

Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlCompositeDataBoundControlRadCompositeDataBoundControlRadListView...

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.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SkinIDWebControl.TabIndexWebControl.TagKeyWebControl.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 RadListView()

Fields

C#
public const string CancelCommandName = "Cancel"
C#
public const string ChangePageSizeCommandName = "ChangePageSize"
C#
public const string DeleteCommandName = "Delete"
C#
public const string DeselectCommandName = "Deselect"
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 RebindListViewCommandName = "RebindListView"
C#
public const string SelectCommandName = "Select"
C#
public const string SortCommandName = "Sort"
C#
public const string UpdateCommandName = "Update"

Properties

Gets or sets if the custom paging feature is enabled.

C#
public virtual bool AllowCustomPaging { get; set; }

Gets or sets if the custom sorting feature is enabled.

C#
public virtual bool AllowCustomSorting { get; set; }

Gets or sets the value indicating if more than one datafield can be sorted. The order is the same as the sequence of expressions in SortExpressions.

C#
public virtual bool AllowMultiFieldSorting { get; set; }

Gets or sets a value indicating whether RadListView will allow you to have multiple items in edit mode. The default value is false.

C#
public virtual bool AllowMultiItemEdit { get; set; }
Property Value:

true if you can have more than one item in edit mode. Otherwise, false. The default value is false.

Gets or sets a value indicating whether you will be able to select multiple items in Telerik RadListView. By default this property is set to false.

C#
public virtual bool AllowMultiItemSelection { get; set; }
Property Value:

true if you can have multiple dataItems selected at once. Otherwise, false. The default is false.

Allows and disallows the no-sort state when changing sort order.

C#
public virtual bool AllowNaturalSort { get; set; }
Property Value:

Allows and disallows the no-sort state when changing sort order.

Gets or sets a value indicating whether the automatic paging feature is enabled.

C#
public virtual bool AllowPaging { get; set; }

Allow RadListView equal items not to be reordered when sorting. Enables sorting result consistancy between 3.5, 4.0, 4.5 Framework

C#
public bool AllowStableSort { get; set; }

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

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

Gets or sets a value indicating whether Telerik RadListView should retrieve all data and ignore server paging in case of sorting.

C#
public virtual bool CanRetrieveAllData { get; set; }
Property Value:

true (default) if the retrieve all data feature is enabled; otherwise, false.

Gets or sets comma delimited list of data-field Names.

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

Comma delimited list of data-field Names.

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

C#
public virtual string ClientDataSourceID { get; set; }

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

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadListViewClientSettings 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 the custom content for the data group template in a RadListView control.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ListViewDataGroupCollection DataGroups { get; }

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

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

Gets collection of data key values.

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

The collection of data key values.

Gets or sets a OData service DataModelID.

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

The OData service DataModelID.

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 RadListViewIndexesCollection EditIndexes { get; }
Property Value:

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

Gets a collection of all RadListViewDataItem in edit mode.

C#
[Browsable(false)]
public RadListViewDataItemCollection EditItems { get; }
Property Value:

RadListViewDataItemCollection of all items that are in edit mode.

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

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(RadListViewDataItem), 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(RadListView))]
public virtual ITemplate EmptyDataTemplate { get; set; }

Gets or sets the user-defined content for the empty item that is rendered in a RadListView control when there are no more data items to display in the last row of the current data page.

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

Gets a collection of filter expressions for RadListView

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual RadListViewFilterExpressionCollection FilterExpressions { get; }

Gets or sets the scope of the aggregates in a RadListView. Meaningful only in case of data grouping. Default value is AllItems

C#
public virtual ListViewGroupAggregatesScope GroupAggregatesScope { get; set; }

Gets or sets the number of items to display per group in a RadListView control. Default value is 1

C#
public virtual int GroupItemCount { get; set; }
Exceptions: ArgumentOutOfRangeException

value is out of range.

Gets or sets the ID for the group placeholder in a RadListView control.

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

The ID for the group placeholder in a RadListView control. The default is "groupPlaceholder".

Gets or sets the user-defined content for the separator between groups in a RadListView control.

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

Gets or sets the custom content for group container in the RadListView control.

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

Gets the insert item of a RadListView control.

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

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

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

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

C#
[TemplateContainer(typeof(RadListViewDataItem), 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 virtual bool IsBoundUsingOData { get; }
C#
protected bool IsDataBinding { get; set; }
C#
protected bool IsEnityDataSourceView { get; }

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

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

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

The ItemInserted property indicates if the RadListView 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 RadListView control.

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

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

Gets a collection of RadListViewDataItem objects that represent the data items of the current page of data in a RadListView control.

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

Gets or sets the custom content for the separator between the items in a RadListView control.

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

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

C#
[TemplateContainer(typeof(RadListViewDataItem), 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 RadListView control.

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

Gets or sets the ODataDataSource used for data binding.

C#
public virtual string ODataDataSourceID { get; set; }

Gets or sets a value indicating if the RadListView should override the default DataSourceControl sorting with its native sorting.

C#
public virtual bool OverrideDataSourceControlSorting { get; set; }

You can set this to true in case of ObjectDataSource with IEnumerable data without implemented sorting.

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

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

Specify the maximum number of items that would appear in a page, when paging is enabled by AllowPaging property. Default value is 10.

C#
public virtual int PageSize { get; set; }
Exceptions: ArgumentOutOfRangeException

value is out of range.

ResolvedDataSource

ListViewEnumerableBase

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

InvalidOperationException.

Gets a collection of indexes of the selected items.

C#
[Browsable(false)]
public RadListViewIndexesCollection SelectedIndexes { get; }

Gets a collection of the currently selected RadListViewDataItems

C#
[Browsable(false)]
public RadListViewDataItemCollection SelectedItems { get; }
Property Value:

Returns a RadListViewDataItemCollection of all selected data items.

Gets or sets the custom content for the selected item in a RadListView control.

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

Gets the data key value of the selected item in a RadListView control.

C#
[Browsable(false)]
public object SelectedValue { get; }
Property Value:

The data key value of the selected row in a RadListView control.

C#
[Browsable(false)]
public DataKey SelectedValues { get; }

Gets a collection of sort expressions for RadListView

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual RadListViewSortExpressionCollection SortExpressions { get; }
C#
protected virtual int StartRowIndex { get; }
C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadCompositeDataBoundControl.SupportsRenderingMode

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 RadListViewValidationSettings object that allows you to set the properties of the validate operation in a RadListView control.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadListViewValidationSettings 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(RadListViewRebindReason rebindReason)
Parameters:rebindReasonRadListViewRebindReason
C#
protected virtual RadFilterFilterableView BuildFilterView()
Returns:

RadFilterFilterableView

C#
protected void BuildInsertItem(Control itemsContainer, int controlIndex, bool dataBinding)
Parameters:itemsContainerControlcontrolIndexintdataBindingbool
C#
[SuppressMessage("Microsoft.Usage", "CA2233:OperationsShouldNotOverflow")]
protected int BuildItemSeparator(Control itemsContainer, int itemsCreatedCount, int controlIndex)
Parameters:itemsContainerControlitemsCreatedCountintcontrolIndexintReturns:

int

C#
[SuppressMessage("Microsoft.Usage", "CA2233:OperationsShouldNotOverflow")]
protected int BuildItemSeparator(Control itemsContainer, int controlIndex)
Parameters:itemsContainerControlcontrolIndexintReturns:

int

Removes all edit items that belong to the RadListView instance.

C#
public void ClearEditItems()

Removes all selected items that belong to RadListView instance.

C#
public void ClearSelectedItems()
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 RadListView control does not have an item placeholder specified.

Overrides: RadCompositeDataBoundControl.CreateChildControls(IEnumerable, bool)

C#
protected virtual RadListViewDataGroupItem CreateDataGroupItem()
Returns:

RadListViewDataGroupItem

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

RadListViewDataItem

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 RadListViewEmptyItem CreateEmptyItem()
Returns:

RadListViewEmptyItem

C#
protected virtual RadListViewGroupItem CreateGroupItem()
Returns:

RadListViewGroupItem

C#
protected virtual RadListViewItem CreateInsertItem()
Returns:

RadListViewItem

Exceptions: InvalidOperationException

The RadListView control does not have an InsertItemTemplate template specified.

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

int

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

int

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 RadListViewDataItem's bound values and data-key values if included.

C#
public virtual void ExtractValuesFromItem(IDictionary newValues, RadListViewDataItem dataItem, bool includePrimaryKey)
Parameters:newValuesIDictionarydataItemRadListViewDataItemincludePrimaryKeyboolExceptions: 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 InstantiateDataGroupTemplate(ITemplate dataGroupTemplate, Control container)
Parameters:dataGroupTemplateITemplatecontainerControl
C#
protected virtual void InstantiateEmptyItemTemplate(Control container)
Parameters:containerControl
C#
protected virtual void InstantiateGroupSeparatorTemplate(Control container)
Parameters:containerControl
C#
protected virtual void InstantiateGroupTemplate(Control container)
Parameters:containerControl
C#
protected virtual void InstantiateInsertItemTemplate(Control container)
Parameters:containerControl
C#
protected virtual void InstantiateItemSeparatorTemplate(Control container)
Parameters:containerControl
C#
public static bool IsBindableType(Type type)
Parameters:typeTypeReturns:

bool

C#
protected bool IsDataSourceViewWithFiltering()
Returns:

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)

Raises the CustomAggregate event

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

Overrides: DataBoundControl.OnDataSourceViewChanged(object, EventArgs)

C#
protected virtual void OnFieldDescriptorsReady(RadFilterFildDesciptorsEventArgs e)
Parameters:eRadFilterFildDesciptorsEventArgs

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(RadListViewCommandEventArgs e)
Parameters:eRadListViewCommandEventArgs

Raises ItemCommand event

C#
protected virtual void OnItemCommand(RadListViewCommandEventArgs e)
Parameters:eRadListViewCommandEventArgs

Raises ItemCreated event

C#
protected virtual void OnItemCreated(RadListViewItemEventArgs e)
Parameters:eRadListViewItemEventArgs

Raises ItemDataBound event

C#
protected virtual void OnItemDataBound(RadListViewItemEventArgs e)
Parameters:eRadListViewItemEventArgs

Raises the ItemDeleted event.

C#
protected virtual void OnItemDeleted(RadListViewDeletedEventArgs e)
Parameters:eRadListViewDeletedEventArgs
C#
protected virtual void OnItemDeleting(RadListViewCommandEventArgs e)
Parameters:eRadListViewCommandEventArgs

Raises the ItemDrop event

C#
protected virtual void OnItemDrop(RadListViewItemDragDropEventArgs e)
Parameters:eRadListViewItemDragDropEventArgs
C#
protected virtual void OnItemEditing(RadListViewCommandEventArgs e)
Parameters:eRadListViewCommandEventArgs
C#
protected virtual void OnItemInserted(RadListViewInsertedEventArgs e)
Parameters:eRadListViewInsertedEventArgs
C#
protected virtual void OnItemInserting(RadListViewCommandEventArgs e)
Parameters:eRadListViewCommandEventArgs

Raises the ItemUpdated event.

C#
protected virtual void OnItemUpdated(RadListViewUpdatedEventArgs e)
Parameters:eRadListViewUpdatedEventArgs

Raises the ItemUpdating event.

C#
protected virtual void OnItemUpdating(RadListViewCommandEventArgs e)
Parameters:eRadListViewCommandEventArgs
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(RadListViewNeedDataSourceEventArgs e)
Parameters:eRadListViewNeedDataSourceEventArgs
C#
protected virtual void OnPageIndexChanged(RadListViewPageChangedEventArgs e)
Parameters:eRadListViewPageChangedEventArgs
C#
protected override void OnPagePreLoad(object sender, EventArgs e)
Parameters:senderobjecteEventArgs

Overrides: DataBoundControl.OnPagePreLoad(object, EventArgs)

C#
protected virtual void OnPageSizeChanged(RadListViewPageSizeChangedEventArgs e)
Parameters:eRadListViewPageSizeChangedEventArgs
C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadCompositeDataBoundControl.OnPreRender(EventArgs)

C#
protected virtual void OnSelectedIndexChanged(EventArgs e)
Parameters:eEventArgs
C#
protected virtual void OnSorting(RadListViewSortEventArgs e)
Parameters:eRadListViewSortEventArgs
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 RadListView.

C#
public virtual void PerformDelete(RadListViewDataItem editedItem, bool suppressRebind)
Parameters:editedItemRadListViewDataItemsuppressRebindbool

Perform asynchronous delete operation, using the DataSourceControl API the Rebinds the grid. Please make sure you have specified the correct DataKeyNames for the RadListView. When the asynchronous operation calls back, RadListView will fire ItemDeleted event.

C#
public virtual void PerformDelete(RadListViewDataItem editedItem)
Parameters:editedItemRadListViewDataItem

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

C#
public virtual void PerformInsert()
Exceptions: InvalidOperationException

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

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

C#
public virtual void PerformInsert(RadListViewInsertItem insertItem, bool suppressRebind)
Parameters:insertItemRadListViewInsertItemsuppressRebindboolExceptions: 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 RadListView. When the asynchronous operation calls back, RadListView will fire ItemUpdated event. The boolean property defines if RadListView will Rebind() after the update.

C#
public virtual void PerformUpdate(RadListViewDataItem editedItem, bool suppressRebind)
Parameters:editedItemRadListViewDataItemsuppressRebindboolExceptions: 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 RadListView. When the asynchronous operation calls back, RadListView will fire ItemUpdated event.

C#
public void PerformUpdate(RadListViewDataItem editedItem)
Parameters:editedItemRadListViewDataItem
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 RadListView.

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

Renders the RadListView 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#
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 RadListView control does not have an item placeholder specified.

Saves any RadListView 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 RadListView'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 RadListView in insert mode, allowing user to insert a new data-item values.

C#
public virtual void ShowInsertItem()

Places the RadListView 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 RadListView 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 RadListView 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(RadListViewInsertItemPosition itemPosition, IDictionary defaultValues)
Parameters:itemPositionRadListViewInsertItemPosition

position at which the insertItem will be shown

defaultValuesIDictionary

values with which InsertItem will be populated

Places the RadListView 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(RadListViewInsertItemPosition itemPosition, object dataItem)
Parameters:itemPositionRadListViewInsertItemPosition

position at which the insertItem will be shown

dataItemobject

object to which InsertItem will be bound

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

C#
public virtual void ShowInsertItem(RadListViewInsertItemPosition itemPosition)
Parameters:itemPositionRadListViewInsertItemPosition
C#
protected override void TrackViewState()

Overrides: DataBoundControl.TrackViewState()

Events

Occurs when a ListView grouped by custom aggregate

C#
public event EventHandler<ListViewCustomAggregateEventArgs> CustomAggregate

Occurs when the Cancel command is fired from any RadListViewDataItem

C#
public event EventHandler<RadListViewCommandEventArgs> ItemCanceling

Raised when a button in a RadListView control is clicked.

C#
public event EventHandler<RadListViewCommandEventArgs> ItemCommand

Raised when RadListViewItem is created

C#
public event EventHandler<RadListViewItemEventArgs> ItemCreated

Raised when RadListViewItem is data bound

C#
public event EventHandler<RadListViewItemEventArgs> ItemDataBound

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

C#
public event EventHandler<RadListViewDeletedEventArgs> ItemDeleted

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

C#
public event EventHandler<RadListViewCommandEventArgs> ItemDeleting

Occurs when a ListView item is dragged and dropped on an HTML element

C#
public event EventHandler<RadListViewItemDragDropEventArgs> ItemDrop

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

C#
public event EventHandler<RadListViewCommandEventArgs> ItemEditing

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

C#
public event EventHandler<RadListViewInsertedEventArgs> ItemInserted

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

C#
public event EventHandler<RadListViewCommandEventArgs> ItemInserting

Occurs when the Update command is fired from any RadListViewDataItem

C#
public event EventHandler<RadListViewUpdatedEventArgs> ItemUpdated

Occurs when the Update command is fired from any RadListViewDataItem

C#
public event EventHandler<RadListViewCommandEventArgs> ItemUpdating

Raised when LayoutTemplate is created

C#
public event EventHandler<EventArgs> LayoutCreated

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

C#
public event EventHandler<RadListViewNeedDataSourceEventArgs> NeedDataSource

Fires when a paging action has been performed.

C#
public event EventHandler<RadListViewPageChangedEventArgs> PageIndexChanged

Fires when PageSize has been changed.

C#
public event EventHandler<RadListViewPageSizeChangedEventArgs> PageSizeChanged

Fires the SelectedIndexChanged event.

C#
public event EventHandler<EventArgs> SelectedIndexChanged

Fires when PageSize has been changed.

C#
public event EventHandler<RadListViewSortEventArgs> Sorting
In this article
DefinitionConstructorsRadListView()FieldsCancelCommandNameChangePageSizeCommandNameDeleteCommandNameDeselectCommandNameEditCommandNameInitInsertCommandNamePageCommandNamePerformInsertCommandNameRebindListViewCommandNameSelectCommandNameSortCommandNameUpdateCommandNamePropertiesAllowCustomPagingAllowCustomSortingAllowMultiFieldSortingAllowMultiItemEditAllowMultiItemSelectionAllowNaturalSortAllowPagingAllowStableSortAlternatingItemTemplateCanRetrieveAllDataClientDataKeyNamesClientDataSourceIDClientSettingsConvertEmptyStringToNullCurrentDataSourceCurrentPageIndexDataGroupsDataKeyNamesDataKeyValuesDataModelIDDataSourceCountDeleteMethodEditIndexesEditItemsEditItemTemplateEmptyDataTemplateEmptyItemTemplateFilterExpressionsGroupAggregatesScopeGroupItemCountGroupPlaceholderIDGroupSeparatorTemplateGroupTemplateInsertItemInsertItemPositionInsertItemTemplateInsertMethodIsBoundToIQueryableCollectionIsBoundUsingODataIsDataBindingIsEnityDataSourceViewIsItemInsertedIsLinqDataSourceViewIsModelValidIsNeedDataSourceInProgressIsOpenAccessDataSourceViewItemPlaceholderIDItemsItemSeparatorTemplateItemTemplateLayoutTemplateLayoutTemplateWrapperODataDataSourceIDOverrideDataSourceControlSortingPageCountPageSizeResolvedDataSourceSelectedIndexesSelectedItemsSelectedItemTemplateSelectedValueSelectedValuesSortExpressionsStartRowIndexSupportsRenderingModeUpdateMethodValidationSettingsVirtualItemCountMethodsAddItemSeparatorToContainer(Control, Control, int)AutoDataBind(RadListViewRebindReason)BuildFilterView()BuildInsertItem(Control, int, bool)BuildItemSeparator(Control, int, int)BuildItemSeparator(Control, int)ClearEditItems()ClearSelectedItems()CreateChildControls()CreateChildControls(IEnumerable, bool)CreateDataGroupItem()CreateDataItem(int)CreateDataItems(Control, IEnumerable, bool)CreateDataSourceSelectArguments()CreateEmptyDataItem(int)CreateEmptyItem()CreateGroupItem()CreateInsertItem()CreateItemsWithDataGroups(Control, IEnumerable, bool)CreateItemsWithGroups(Control, IEnumerable, bool)DataBind()DescribeComponent(IScriptDescriptor)EnsureLayoutTemplate()ExtractValuesFromItem(IDictionary, RadListViewDataItem, bool)GetData()GetDefaultInsertionObject()GetScriptReferences()HandleClientFireCommand(string, string)InitializeLayoutTemplate()InstantiateDataGroupTemplate(ITemplate, Control)InstantiateEmptyItemTemplate(Control)InstantiateGroupSeparatorTemplate(Control)InstantiateGroupTemplate(Control)InstantiateInsertItemTemplate(Control)InstantiateItemSeparatorTemplate(Control)IsBindableType(Type)IsDataSourceViewWithFiltering()LoadClientState(Dictionary<string, object>)LoadControlState(object)LoadControlStateObject(object[], int)LoadViewState(object)OnBubbleEvent(object, EventArgs)OnCustomAggregate(ListViewCustomAggregateEventArgs)OnDataSourceViewChanged(object, EventArgs)OnFieldDescriptorsReady(RadFilterFildDesciptorsEventArgs)OnInit(EventArgs)OnItemCanceling(RadListViewCommandEventArgs)OnItemCommand(RadListViewCommandEventArgs)OnItemCreated(RadListViewItemEventArgs)OnItemDataBound(RadListViewItemEventArgs)OnItemDeleted(RadListViewDeletedEventArgs)OnItemDeleting(RadListViewCommandEventArgs)OnItemDrop(RadListViewItemDragDropEventArgs)OnItemEditing(RadListViewCommandEventArgs)OnItemInserted(RadListViewInsertedEventArgs)OnItemInserting(RadListViewCommandEventArgs)OnItemUpdated(RadListViewUpdatedEventArgs)OnItemUpdating(RadListViewCommandEventArgs)OnLayoutCreated(EventArgs)OnLoad(EventArgs)OnNeedDataSource(RadListViewNeedDataSourceEventArgs)OnPageIndexChanged(RadListViewPageChangedEventArgs)OnPagePreLoad(object, EventArgs)OnPageSizeChanged(RadListViewPageSizeChangedEventArgs)OnPreRender(EventArgs)OnSelectedIndexChanged(EventArgs)OnSorting(RadListViewSortEventArgs)OnTotalRowCountAvailable(RadDataPagerPageEventArgs)PerformDataBinding(IEnumerable)PerformDelete(RadListViewDataItem, bool)PerformDelete(RadListViewDataItem)PerformInsert()PerformInsert(RadListViewInsertItem, bool)PerformSelect()PerformUpdate(RadListViewDataItem, bool)PerformUpdate(RadListViewDataItem)PopulateDataKeys(object)PrepareDataSource()PrepareItemContainer(Control, bool, Action<Control>, string)RaisePostBackEvent(string)Rebind()RemoveItems()Render(HtmlTextWriter)RenderContents(HtmlTextWriter)RetrivePlaceHolderControl(Control, string)SaveControlState()SaveControlStateObject(IList)SaveViewState()SetPageProperties(int, int, bool)ShowInsertItem()ShowInsertItem(IDictionary)ShowInsertItem(object)ShowInsertItem(RadListViewInsertItemPosition, IDictionary)ShowInsertItem(RadListViewInsertItemPosition, object)ShowInsertItem(RadListViewInsertItemPosition)TrackViewState()EventsCustomAggregateItemCancelingItemCommandItemCreatedItemDataBoundItemDeletedItemDeletingItemDropItemEditingItemInsertedItemInsertingItemUpdatedItemUpdatingLayoutCreatedNeedDataSourcePageIndexChangedPageSizeChangedSelectedIndexChangedSorting
Not finding the help you need?
Contact Support