ASPxClientGridView.Refresh Method
Updates data displayed within the grid.
Declaration
Refresh(): void
Remarks
To update data, the Refresh method sends a callback to the server and re-binds the grid.
Example
The following example illustrates how to use the Refresh method.
WebForms approach:
<dx:ASPxGridView runat="server" ID="ASPxGridView1" ... >
<ClientSideEvents EndCallback="OnEndCallback" BeginCallback="OnBeginCallback"/>
...
</dx:ASPxGridView>
MVC approach:
@Html.DevExpress().GridView(settings => {
settings.Name = "GridView1";
settings.KeyFieldName = "ID";
settings.ClientSideEvents.BeginCallback = "function(s, e) { command = e.command; }";
settings.ClientSideEvents.EndCallback = "function(s, e) { if (command == 'ADDNEWROW') {
s.Refresh(); } }";
}).Bind(Model).GetHtml()
Online Example
Online Demo
See Also