Skip to main content

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.

Web Forms:

<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