The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.1
19.2 (preview)
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxClientTreeList.Refresh Method

Updates the tree list data.

Declaration

Refresh(): void

Remarks

Use the Refresh method to update data. This method sends a callback to the server and re-binds the tree list.

Example

The following example illustrates how to use the Refresh method.

WebForms:

<dx:ASPxTreeList ID="ASPxTreeList1" >
    <Columns>
        ...
    </Columns>
    <ClientSideEvents EndCallback="OnEndCallback" BeginCallback="OnBeginCallback"/> 
</dx:ASPxTreeList>

MVC:


@Html.DevExpress().TreeList(settings => {
    settings.Name = "TreeList1";
    settings.KeyFieldName = "ProductID";

    settings.ClientSideEvents.BeginCallback = "function(s, e) { command = e.command; }";
    settings.ClientSideEvents.EndCallback = "function(s, e) { if (command == 'StartEditNewNode') {
        s.Refresh(); } }";
}).Bind(Model).GetHtml() 
See Also