RadClientDataSource
This partial class defines RadClientDataSource control - a flexible and extensible server-side component for retrieving and providing data on the client under various forms and from different source such web and rest service, page method, other datasource controls and other means
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(Html5Data))]
[ClientScriptResource("Telerik.Web.UI.RadClientDataSource", "Telerik.Web.UI.ClientDataSource.RadClientDataSourceScripts.js")]
[ToolboxBitmap(typeof(RadClientDataSource), "Toolbox.Icons.ClientDataSource.png")]
[TelerikToolboxCategory("Data")]
public class RadClientDataSource : Control, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IScriptControl, IControl, IControlResolver, IPostBackDataHandler, ICallbackEventHandler
Inheritance: objectControlRadClientDataSource
Derived Classes:
Implements:
Inherited Members
Constructors
public RadClientDataSource()
Properties
Gets a collection of aggregates expressions for RadClientDataSource
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual ClientDataSourceAggregatesCollection Aggregates { get; }
Gets or sets a value indicating whether batch operations in the RadClientDataSource are enabled
The default is false.
public virtual bool AllowBatchOperations { get; set; }
Gets or sets a value indicating whether the paging in RadClientDataSource is enabled
The default is false.
public virtual bool AllowPaging { get; set; }
Gets or sets a value indicating whether the RadClientDataSource would automatically save any changed data items by calling the sync method. By default changes are not automatically saved.
The default is false.
public virtual bool AutoSync { get; set; }
Gets a reference to ClientDataSourceClientEvents class.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ClientDataSourceClientEvents ClientEvents { get; }
Gets or sets a value indicating the index of the currente page
[Bindable(true)]
[Browsable(false)]
public int CurrentPageIndex { get; set; }
The index of the current page.
Contains settings about the different types of data sources used in RadClientDataSource.
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual ClientDataSourceSettings DataSource { get; }
Gets or sets value indicating whether server-side aggregates are enabled
public virtual bool EnableServerAggregates { get; set; }
Gets or sets value indicating whether server-side filtering is enabled
public virtual bool EnableServerFiltering { get; set; }
Gets or sets value indicating whether server-side grouping is enabled
public virtual bool EnableServerGrouping { get; set; }
Gets or sets value indicating whether server-side paging is enabled
public virtual bool EnableServerPaging { get; set; }
Gets or sets value indicating whether server-side sorting is enabled
public virtual bool EnableServerSorting { get; set; }
Gets a collection of filter expressions for RadClientDataSource
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual ClientDataSourceFilterExpression FilterExpression { get; }
Gets a collection of group expressions for RadClientDataSource
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual ClientDataSourceGroupExpressionCollection GroupExpressions { get; }
Gets or sets the maximum number of items that would appear on a page. Default value is 10.
public virtual int PageSize { get; set; }
Gets or sets the value, indicating whether to register with the ScriptManager control on the page.
public virtual bool RegisterWithScriptManager { get; set; }
Implements:
If RegisterWithScriptManager is set to false the control can be rendered on the page using Web Services or normal callback requests/page methods.
Contains settings about the schema and model of the data used in RadClientDataSource.
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual ClientDataSourceSchema Schema { get; }
Gets a collection of sort expressions for RadClientDataSource
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual ClientDataSourceSortExpressionCollection SortExpressions { get; }
Methods
Gets a collection of script descriptors that represent ECMAScript (JavaScript) client components.
public IEnumerable<ScriptDescriptor> GetScriptDescriptors()
An IEnumerable collection of ScriptDescriptor objects.
Implements:
Gets a collection of ScriptReference objects that define script resources that the control requires.
public IEnumerable<ScriptReference> GetScriptReferences()
An IEnumerable collection of ScriptReference objects.
Implements:
Loads the client state data
protected virtual bool LoadClientState(Dictionary<string, object> clientState)
Executed when post data is loaded from the request
protected virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Executed when post data changes should invoke a chagned event
protected virtual void RaisePostDataChangedEvent()
Registers the control with the ScriptManager
protected virtual void RegisterScriptControl()
protected virtual void RegisterScriptDescriptors()
protected override void TrackViewState()
Overrides: