Class ListViewPropertiesBuilder
Represents a class for ListViewPropertiesBuilder which includes height, width, header title, data source, query, and scrollbar properties.
Inheritance
System.Object
ListViewPropertiesBuilder
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ.dll
Syntax
public class ListViewPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
ListViewPropertiesBuilder(ListView)
Declaration
public ListViewPropertiesBuilder(ListView ListView)
Parameters
Methods
AdjustFixedPosition(Boolean)
Specifies whether need to adjust the scrolling content height for fixed position elements with the height of the control, when scrolling is allowed.with boolean argument.
Declaration
public ListViewPropertiesBuilder AdjustFixedPosition(bool adjustFixedPosition)
Parameters
Type |
Name |
Description |
System.Boolean |
adjustFixedPosition |
|
Returns
AjaxSettings(Action<jQueryAjaxOptionsBuilder>)
Specifies the settings option for ajax request.with array argument.
Declaration
public ListViewPropertiesBuilder AjaxSettings(Action<jQueryAjaxOptionsBuilder> ajaxSettings)
Parameters
Returns
Specifies whether to allow scrolling behaviour when the content height/width exceeds the browser window.with boolean argument.
Declaration
public ListViewPropertiesBuilder AllowScrolling(bool allowScrolling)
Parameters
Type |
Name |
Description |
System.Boolean |
allowScrolling |
|
Returns
Specifies VirtualScrolling for ListView.
Declaration
public ListViewPropertiesBuilder AllowVirtualScrolling(bool allowVirtualScrolling)
Parameters
Type |
Name |
Description |
System.Boolean |
allowVirtualScrolling |
|
Returns
AutoAdjustHeight(Boolean)
Specifies whether to set the height as window height automatically.with boolean argument.
Declaration
public ListViewPropertiesBuilder AutoAdjustHeight(bool autoAdjustHeight)
Parameters
Type |
Name |
Description |
System.Boolean |
autoAdjustHeight |
|
Returns
Specifies whether to set the height as scroll height of the content automatically.with using boolean argument.
Declaration
public ListViewPropertiesBuilder AutoAdjustScrollHeight(bool autoAdjustScrollHeight)
Parameters
Type |
Name |
Description |
System.Boolean |
autoAdjustScrollHeight |
|
Returns
CheckDomChanges(Boolean)
Specifies whether need to refresh scrollpanel rendered in the control when elements are added dynamically.with boolean argument.
Declaration
public ListViewPropertiesBuilder CheckDomChanges(bool checkDomChanges)
Parameters
Type |
Name |
Description |
System.Boolean |
checkDomChanges |
|
Returns
CheckedIndices(List<Int32>)
Contains the list of checked ListView items.
Declaration
public ListViewPropertiesBuilder CheckedIndices(List<int> checkedIndices)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Int32> |
checkedIndices |
|
Returns
ClientSideEvents(Action<ListViewClientSideEventsBuilder>)
Specifies the ListView ClientSideEvents.
Declaration
public ListViewPropertiesBuilder ClientSideEvents(Action<ListViewClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
ContentTemplate(Action<ListViewProperties>)
Specifies the ContentTemplate for webform.with array argument.
Declaration
public ListViewPropertiesBuilder ContentTemplate(Action<ListViewProperties> template)
Parameters
Returns
ContentTemplate(Func<ListViewProperties, Object>)
Specifies the ContentTemplate for RazorView.with array argument.
Declaration
public ListViewPropertiesBuilder ContentTemplate(Func<ListViewProperties, object> template)
Parameters
Returns
CssClass(String)
Sets the root class for ListView theme. This will applies custom skinning option for ListView control.Before using this API, we need to include this root class in CSS.with string argument.
Declaration
public ListViewPropertiesBuilder CssClass(string CssClass)
Parameters
Type |
Name |
Description |
System.String |
CssClass |
|
Returns
DataSource(DataSource)
Specifies the datasource is enabled.with object argument.
Declaration
public ListViewPropertiesBuilder DataSource(DataSource dataSource)
Parameters
Returns
DataSource(Action<DataSourceBuilder>)
Specifies the datasource is enabled.with array argument.
Declaration
public ListViewPropertiesBuilder DataSource(Action<DataSourceBuilder> dataSource)
Parameters
Returns
DataSource(IEnumerable)
Specifies the datasource is enabled.with IEnumerable argument.
Declaration
public ListViewPropertiesBuilder DataSource(IEnumerable dataSource)
Parameters
Type |
Name |
Description |
System.Collections.IEnumerable |
dataSource |
|
Returns
EnableAjax(Boolean)
Specifies whether to load ajax content while selecting item.with boolean argument.
Declaration
public ListViewPropertiesBuilder EnableAjax(bool loadAjax)
Parameters
Type |
Name |
Description |
System.Boolean |
loadAjax |
|
Returns
EnableCache(Boolean)
Specifies whether to enable caching the content.by setting up boolean argument to true.
Declaration
public ListViewPropertiesBuilder EnableCache(bool cache)
Parameters
Type |
Name |
Description |
System.Boolean |
cache |
|
Returns
EnableCheckMark(Boolean)
Specifies whether to enable check mark for coressponding selected item.with boolean argument.
Declaration
public ListViewPropertiesBuilder EnableCheckMark(bool enableCheckMark)
Parameters
Type |
Name |
Description |
System.Boolean |
enableCheckMark |
|
Returns
EnableFiltering(Boolean)
Specifies whether to enable the filtering feature for the items in listView.with boolean argument.
Declaration
public ListViewPropertiesBuilder EnableFiltering(bool enableFiltering)
Parameters
Type |
Name |
Description |
System.Boolean |
enableFiltering |
|
Returns
EnableGroupList(Boolean)
Specifies whether to group the list item.with boolean argument.
Declaration
public ListViewPropertiesBuilder EnableGroupList(bool enablegroupList)
Parameters
Type |
Name |
Description |
System.Boolean |
enablegroupList |
|
Returns
EnablePersistence(Boolean)
Specifies that "Saves the current model value to the browser cookies for maintaining states. On refreshing, the ListView control page retains the model value applied from browser cookies.with boolean argument
Declaration
public ListViewPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
FieldSettings(Action<ListViewFieldsBuilder>)
Specifies the field settings to map the datasource is enabled.with array argument.
Declaration
public ListViewPropertiesBuilder FieldSettings(Action<ListViewFieldsBuilder> fieldsettings)
Parameters
Returns
Groups(Action<ListViewGroupItemAdder>)
Specifies the group list items.with array argument.
Declaration
public ListViewPropertiesBuilder Groups(Action<ListViewGroupItemAdder> groupList)
Parameters
Returns
Specifies the text of the back button in the header.with string argument.
Declaration
public ListViewPropertiesBuilder HeaderBackButtonText(string headerBackButtonText)
Parameters
Type |
Name |
Description |
System.String |
headerBackButtonText |
|
Returns
Specifies the title of the header.with string argument.
Declaration
public ListViewPropertiesBuilder HeaderTitle(string headerTitle)
Parameters
Type |
Name |
Description |
System.String |
headerTitle |
|
Returns
Height(Int32)
Specifies the height.with integer argument.
Declaration
public ListViewPropertiesBuilder Height(int height)
Parameters
Type |
Name |
Description |
System.Int32 |
height |
|
Returns
Specifies whether to hide the header for unsupported device.with boolean argument.
Declaration
public ListViewPropertiesBuilder HideHeaderForUnSupportedDevice(bool hideHeaderForUnSupportedDevice)
Parameters
Type |
Name |
Description |
System.Boolean |
hideHeaderForUnSupportedDevice |
|
Returns
ItemRequestCount(Int32)
Specifies the itemRequestCount with integer argument.
Declaration
public ListViewPropertiesBuilder ItemRequestCount(int itemRequestCount)
Parameters
Type |
Name |
Description |
System.Int32 |
itemRequestCount |
|
Returns
Items(Action<ListViewItemAdder>)
Specifies the list items.with array argument.
Declaration
public ListViewPropertiesBuilder Items(Action<ListViewItemAdder> listItem)
Parameters
Returns
Locale(String)
Defines the localization culture for the ListView. A string argument 'locale' is passed.
Declaration
public ListViewPropertiesBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
PersistSelection(Boolean)
Specifies whether to retain the selection of the item.with boolean argument.
Declaration
public ListViewPropertiesBuilder PersistSelection(bool persistSelection)
Parameters
Type |
Name |
Description |
System.Boolean |
persistSelection |
|
Returns
PreventSelection(Boolean)
Specifies whether to prevent the selection of the item being selected.with boolean argument.
Declaration
public ListViewPropertiesBuilder PreventSelection(bool preventSelection)
Parameters
Type |
Name |
Description |
System.Boolean |
preventSelection |
|
Returns
Query(String)
Specifies the query to execute with the datasource is enabled.with string argument.
Declaration
public ListViewPropertiesBuilder Query(string query)
Parameters
Type |
Name |
Description |
System.String |
query |
|
Returns
Render()
Declaration
RenderTemplate(Boolean)
Specifies whether to render the control with the template contents.by setting boolean argument to true.
Declaration
public ListViewPropertiesBuilder RenderTemplate(bool renderTemplate)
Parameters
Type |
Name |
Description |
System.Boolean |
renderTemplate |
|
Returns
SelectedItemIndex(Int32)
Specifies the index of item which need to be in selected state initially while loading.with integer argument.
Declaration
public ListViewPropertiesBuilder SelectedItemIndex(int selectedItemIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
selectedItemIndex |
|
Returns
Specifies whether to show the header.with using boolean argument.
Declaration
public ListViewPropertiesBuilder ShowHeader(bool showHeader)
Parameters
Type |
Name |
Description |
System.Boolean |
showHeader |
|
Returns
Specifies whether to show the back button in the header.with boolean argument.
Declaration
public ListViewPropertiesBuilder ShowHeaderBackButton(bool showHeaderBackButton)
Parameters
Type |
Name |
Description |
System.Boolean |
showHeaderBackButton |
|
Returns
Specifies whether need to show the scroll bars when scrolling is allowed.with boolean argument.
Declaration
public ListViewPropertiesBuilder ShowScrollbars(bool scrollbars)
Parameters
Type |
Name |
Description |
System.Boolean |
scrollbars |
|
Returns
TemplateId(String)
Specifies ID of the element contains template contents.with string argument.
Declaration
public ListViewPropertiesBuilder TemplateId(string templateId)
Parameters
Type |
Name |
Description |
System.String |
templateId |
|
Returns
ToHtmlString()
Returns an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
TotalItemsCount(Int32)
Specifies the totalItemsCount with integer argument.
Declaration
public ListViewPropertiesBuilder TotalItemsCount(int totalItemsCount)
Parameters
Type |
Name |
Description |
System.Int32 |
totalItemsCount |
|
Returns
Specifies the virtual scroll mode to load the list data on demand via scrolling behavior.
Declaration
public ListViewPropertiesBuilder VirtualScrollMode(VirtualScrollMode virtualScrollMode)
Parameters
Returns
Width(Int32)
Specifies the width.with integer argument.
Declaration
public ListViewPropertiesBuilder Width(int width)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
Returns
Implements
System.Web.IHtmlString