ASP.NET Core MVC Controls | ComponentOne
Client- Side API Reference / CallbackCollectionView Class
In This Topic
    CallbackCollectionView Class
    In This Topic
    File
    c1.mvc.collections.js
    Module
    c1.mvc.collections
    Base Class
    RemoteCollectionView

    Extends RemoteCollectionView to support data service provided by control callback.

    You can use the result objects from the data service as data sources for any Wijmo controls, and in addition to full CRUD support and real-time updates you automatically get CollectionView features including sorting, filtering, paging, grouping, and editing.

    Constructor

    Properties

    Methods

    Events

    Constructor

    constructor

    constructor(options: IRemoteCollectionViewSettings): RemoteCollectionView
    

    Initializes a new instance of a RemoteCollectionView.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    RemoteCollectionView

    Properties

    pageCount

    Override pageCount to get the total number pages.

    Inherited From
    RemoteCollectionView
    Type
    number

    Methods

     

    Static cast
    cast(obj: any): CallbackCollectionView
    

    Casts the specified object to CallbackCollectionView type.

    Parameters
    Returns
    CallbackCollectionView

    commit

    commit(): void
    

    Commit all the changes to the database. When the editing url in IRemoteCollectionViewSettings or batch editing is used, an ajax request will be sent to server side to comment the changes to the data source.

    Inherited From
    RemoteCollectionView
    Returns
    void

    commitEdit

    commitEdit(): void
    

    Override commitEdit to modify the item in the database. When updateActionUrl or batch editing is used, an ajax request will be sent to server side to update the data source.

    Inherited From
    RemoteCollectionView
    Returns
    void

    commitNew

    commitNew(): void
    

    Override commitNew to add the new item to the data source. When createActionUrl or batch editing is used, an ajax request will be sent to server side to update the data source.

    Inherited From
    RemoteCollectionView
    Returns
    void

    forceRefresh

    forceRefresh(): void
    

    Force to refresh the view using the current sort, filter and group parameters. When calling this method, an ajax request will be sent to server side to fecth data.

    Inherited From
    RemoteCollectionView
    Returns
    void

    getAllData

    getAllData(success: ICollectionViewResponseHandler): void
    

    Get the whole data.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    void

    getColumnData

    getColumnData(column: string, distinct: boolean, success: ICollectionViewResponseHandler): void
    

    Get the whole column data.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    void

    onCollectionChanged

    onCollectionChanged(e?: NotifyCollectionChangedEventArgs): void
    

    Raises the collectionChanged event.

    Parameters
    Optional

    Contains a description of the change.

    Inherited From
    RemoteCollectionView
    Returns
    void

    onError

    onError(e: ErrorEventArgs): void
    

    Raises the error event.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    void

    onPageChanging

    onPageChanging(e: PageChangingEventArgs): boolean
    

    Raises the pageChanging event.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    boolean

    onQueryComplete

    onQueryComplete(e: QueryCompleteEventArgs): void
    

    Raises the queryComplete event.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    void

    onQueryData

    onQueryData(e: QueryEventArgs): void
    

    Raises the queryData event.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    void

    onReponseTextParsing

    onReponseTextParsing(e: JSONOperationEventArgs): void
    

    Raises the reponseTextParsing event.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    void

    onRequestDataStringifying

    onRequestDataStringifying(e: JSONOperationEventArgs): void
    

    Raises the requestDataStringifying event.

    Parameters
    Inherited From
    RemoteCollectionView
    Returns
    void

    onSourceCollectionChanged

    onSourceCollectionChanged(e?: EventArgs): void
    

    Raises the sourceCollectionChanged event.

    Parameters
    Optional
    Inherited From
    RemoteCollectionView
    Returns
    void

    refresh

    refresh(): void
    

    Re-creates the view using the current sort, filter, and group parameters. When the data is not cached in client-side, an ajax request will be sent to server side to fecth data.

    Inherited From
    RemoteCollectionView
    Returns
    void

    remove

    remove(item: any): void
    

    Override remove to remove the item from the database. When deleteActionUrl or batch editing is used, an ajax request will be sent to server side to update the data source.

    Parameters
    • item: any

      The item used to be removed.

    Inherited From
    RemoteCollectionView
    Returns
    void

    requestItems

    requestItems(startRow: number, endRow: number): void
    

    Prepare the items from startRow to endRow.

    Parameters
    • startRow: number

      The start row index.

    • endRow: number

      The end row index.

    Inherited From
    RemoteCollectionView
    Returns
    void

    Events

    error

    The error event which raises when there are errors from the server side.

    Inherited From
    RemoteCollectionView
    Arguments
    ErrorEventArgs

    queryComplete

    Occurs when the query requests complete.

    Inherited From
    RemoteCollectionView
    Arguments
    QueryCompleteEventArgs

    queryData

    The event fires when collect the ajax query data.

    Inherited From
    RemoteCollectionView
    Arguments
    QueryEventArgs

    reponseTextParsing

    Occurs when parsing the response text.

    Inherited From
    RemoteCollectionView
    Arguments
    JSONOperationEventArgs

    requestDataStringifying

    Occurs when serializing the request data.

    Inherited From
    RemoteCollectionView
    Arguments
    JSONOperationEventArgs