I want to refresh the data the grid is displaying. Does the grid provide a client side function to refresh itself using AJAX?
Yes, it really depends on what you need to achieve. What I suggested above will refresh the whole grid. If you want finer/greater control on what happens, I can suggest taking a look at our CSOM help located here (for example here is the link for CSOM sorting)http://help.infragistics.com
/Help/NetAdvantage/NET/2008.3/CLR3.5/html/WebDataGrid~Infragistics.Web.UI.Sorting_methods.html
You can certainly play/trigger/abuse anything that you find suitable in the docs. Unfortunately some of the documentation is not complete yet, for example the Virtual Scrolling behaviour is still in CTP and docs are not completed yet.
Still, I do have a good idea for you to explore the whole CSOM - you can use the reserved javascript word "debugger;" - this will trigger the Visual Studio .NET debugger (make sure you uncheck the two "Disable Scrip Debugging" options in IE Options first) - this way you can get any object (including behaviour instances) and see all available properties and methods there - both public and internal. Typically internal methods are prefixed with underscores.
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?
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