I want to refresh the data the grid is displaying. Does the grid provide a client side function to refresh itself using AJAX?
Hello,
I am going through the help file for CSOM (client-side object model) for WebDataGrid and unfortunately am not able to find a client-side method for that.
Still, in most cases if we assume that you have wrapped your WebDataGrid inside an UpdatePanel, you can just have a button inside the ContentTemplate of the update panel (let's have its ID="RefreshButton") - then you can refresh the whole UpdatePanel with
<script type="text/javascript">function RunThisAfterAsyncPostback(){ document.getElementById("<%= RefreshButton.ClientID %>").click();}</script>
you can hide the button by setting its style / CssClass to have negative top / left properties ot display:none / visibility: hidden
What is firing the RunThisAfterAsyncPostback() call? I've tried to run the example code but javascript is not firing.
I am investigating to migrate the WebGrid to WebDataGrid. The WebGrid supported this kind of functions. Will refresh functions be added in future versions of the WebDataGrid? Or do I have to use MicroSoft panels to refresh?
Can somehow the functions the WebDataGrid uses for virtual scrolling, paging and sorting be triggered/abused to implement a refresh?