Hi Pio,
Thanks for contacting Syncfusion Forums.
QUERY: Refresh grid no workingFrom the shared code, we understand that you need to refresh grid’s dataSource, we suggest you to use “dataSource” method.
Please refer the below help documentations,
If you need to refresh entire grid and its properties, we suggest you to use “refreshContent” method.Please refer the below help documentations,
If we have misinterpreted your query, please share us the below details,
- Please explain us your requirement with clarity (like what you are trying to do by refreshing)
- Please tell us where you have called create method or to which event you have binded to it.
- Screenshots of error (if any)
If you have further queries, please get back to us.
Regards,Padmavathy Kamalanathan
<script>
$("#Grid").ejGrid({
dataSource: window.gridData,
allowPaging: true,
allowSorting: true,
columns: [
--------
]
});
</script>
|
<script>
// Create grid object.
var gridObj = $("#Grid").data("ejGrid");
gridObj.sortColumn("OrderID", "ascending"); // Sends a sorting request to the grid with specified columnName and sortDirection
</script>
|