Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.DataSorter Class Reference

More...

Inheritance diagram for Ext.Net.DataSorter:
Ext.Net.BaseItem Ext.Net.IXObject Ext.Net.IBase Ext.Net.DataGrouper

Classes

class  Builder
 
class  Builder
 
class  Config
 

Public Member Functions

 DataSorter ()
 
DataSorter.Builder ToBuilder ()
 
override IControlBuilder ToNativeBuilder ()
 
 DataSorter (Config config)
 
- Public Member Functions inherited from Ext.Net.BaseItem
virtual bool HasExplicitValue (string name)
 
void EnsureDataBind ()
 
virtual void Call (string name)
 
virtual void Call (string name, params object[] args)
 
virtual void AddScript (string script)
 
virtual void AddScript (string script, params object[] args)
 
virtual bool IsEmptyObject ()
 
Apply< T > (IApply config)
 
BaseItem Apply (object config)
 
virtual void LoadViewState (object state)
 
virtual object SaveViewState ()
 
virtual void TrackViewState ()
 
void SetDirty ()
 
virtual void DataBind ()
 

Static Public Member Functions

static DataSorter[] From (string value)
 
static implicit operator DataSorter (DataSorter.Config config)
 

Properties

SortDirection Direction [get, set]
 The direction to sort by. Defaults to ASC More...
 
string ID [get, set]
 An optional id this sorter can be keyed by in Collections. If no id is specified it will use the property name used in this Sorter. If no property is specified, e.g. when adding a custom sorter function we will generate a random id. More...
 
virtual string Property [get, set]
 The property to sort by. Required unless sorterFn is provided More...
 
virtual string Root [get, set]
 Optional root property. This is mostly useful when sorting a Store, in which case we set the root to 'data' to make the filter pull the property out of the data object of each item More...
 
virtual JFunction SorterFn [get]
 A specific sorter function to execute. Can be passed instead of property Parameters item1 : first data item item2 : second data item More...
 
virtual JFunction Transform [get]
 function that will be run on each value before it is compared in the sorter. The function will receive a single argument, the value. Parameters item : data item More...
 
override ConfigOptionsCollection ConfigOptions [get]
 
- Properties inherited from Ext.Net.BaseItem
virtual string InstanceOf [get]
 
ItemState State [get]
 
virtual DefaultValueMode DefaultValueMode [get, set]
 
virtual bool DesignMode [get]
 
bool AutoDataBind [get, set]
 
ResourceManager ResourceManager [get]
 
virtual Control Owner [get, set]
 The Owner Control for this Listener. More...
 
virtual bool IsDefault [get]
 Does this object currently represent it's default state. More...
 
bool IsTrackingViewState [get]
 
EventHandlerList Events [get]
 
EventHandler DataBinding
 
Control?? BindingContainer [get]
 
virtual ConfigItemCollection?? CustomConfig [get]
 Collection of custom js config More...
 
virtual ConfigOptionsCollection ConfigOptions [get]
 
virtual ConfigOptionsExtraction ConfigOptionsExtraction [get]
 
System.Web.Mvc.HtmlHelper?? HtmlHelper [get, set]
 
- Properties inherited from Ext.Net.IXObject
ConfigOptionsCollection ConfigOptions [get]
 
ConfigOptionsExtraction ConfigOptionsExtraction [get]
 
DefaultValueMode DefaultValueMode [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from Ext.Net.BaseItem
 BaseItem (Control owner)
 
 BaseItem ()
 
virtual void OwnerUpdate (Control owner)
 
virtual void OnDataBinding (EventArgs e)
 

Detailed Description

Constructor & Destructor Documentation

◆ DataSorter() [1/2]

Ext.Net.DataSorter.DataSorter ( )
inline

◆ DataSorter() [2/2]

Ext.Net.DataSorter.DataSorter ( Config  config)
inline

Member Function Documentation

◆ From()

static DataSorter [] Ext.Net.DataSorter.From ( string  value)
inlinestatic

Parameters
value
Returns

◆ operator DataSorter()

static implicit Ext.Net.DataSorter.operator DataSorter ( DataSorter.Config  config)
inlinestatic

◆ ToBuilder()

DataSorter.Builder Ext.Net.DataSorter.ToBuilder ( )
inline

◆ ToNativeBuilder()

override IControlBuilder Ext.Net.DataSorter.ToNativeBuilder ( )
inlinevirtual

Reimplemented from Ext.Net.BaseItem.

Property Documentation

◆ ConfigOptions

override ConfigOptionsCollection Ext.Net.DataSorter.ConfigOptions
get

◆ Direction

SortDirection Ext.Net.DataSorter.Direction
getset

The direction to sort by. Defaults to ASC

◆ ID

string Ext.Net.DataSorter.ID
getset

An optional id this sorter can be keyed by in Collections. If no id is specified it will use the property name used in this Sorter. If no property is specified, e.g. when adding a custom sorter function we will generate a random id.

◆ Property

virtual string Ext.Net.DataSorter.Property
getset

The property to sort by. Required unless sorterFn is provided

◆ Root

virtual string Ext.Net.DataSorter.Root
getset

Optional root property. This is mostly useful when sorting a Store, in which case we set the root to 'data' to make the filter pull the property out of the data object of each item

◆ SorterFn

virtual JFunction Ext.Net.DataSorter.SorterFn
get

A specific sorter function to execute. Can be passed instead of property Parameters item1 : first data item item2 : second data item

◆ Transform

virtual JFunction Ext.Net.DataSorter.Transform
get

function that will be run on each value before it is compared in the sorter. The function will receive a single argument, the value. Parameters item : data item


The documentation for this class was generated from the following files: