A newer version of this page is available. Switch to the current version.

Refresh Data

Use the JavaScript API to refresh server-side controls’ data. Any data-bound control has the getDataSource() method. It returns the control’s DataSource instance. Call its reload() method to refresh the control’s data, as shown in the following DataGrid example:

    .DataSource(ds => ds.Mvc()

    .Text("Refresh Grid")

<script type="text/javascript">
    function reloadData() {