Hi,
I know that the WebGrid doesn't explicitly support client-side databinding. But is this the truth?
If I set the LoadOnDemand=XML property than the whole lifecycle of the aspx page will be executed (I want to avoid this).
I saw that the javascript of Infragistics creates an XMLHttpRequest and send it to the aspx page. The response is XML and in the javascript ressources theres ist a onReadyStateChange (igtbl_onReadyStateChange) function with the following code:
...
if (!g && gridName){ g=igtbl_getGridById(gridName);} ...
g.responseText=xmlHttp.responseText;
So it seems that there is a way to set the XML source of the Grid on clint-side. But I do not know how to use it nor how to create the XML of the grid.
I wish I could send a XMLHttpRequest to the server, on server get the data to display in the grid, create the corresponding XML data, send the data back to the client and use the onReadyStateChange function to bind this data to the grid.
Is this possible?
Thanks!
I wouldn't recommend trying to hook into the grid's internal xml updating. This functionality is internal grid functionality that could change subtly without warning and break your code. I'd recommend using the grid's refresh() ajax callback instead.
Is there something specific about your page that makes executing the whole lifecycle of the page affect performance?