Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
Howto : Refresh grid client-side?
posted

I want to refresh the data the grid is displaying. Does the grid provide a client side function to refresh itself using AJAX?

Parents
No Data
Reply
  • 28464
    posted

    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

Children