12-14-2022, 08:41 PM
1) Doc's are scattered and not up-to-date. I get most info from the source (hope you have access to it), the demo's on Github and this forum. At the end it comes to html, javascript and css. There is plenty info on the internet without the Intraweb specifics. That's the way I performed a refesh in the past. window.location.reload(true);
In Intraweb this is written as WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('window.location.reload(true);');
And that is the implementation of TIWForm.AsyncReload!
2) Not sure what you excactly mean. Do you mean the statements that are in your page's constructor? Those are only called once on TIWForm object creation. TIWForm.OnRender is called on rendering the page. But I am not sure if that is what you are after.
Can't you create a method to fill the grid and call it from the IWTimer1AsyncTimer eventhandler?
By updating the grid, Intraweb invalidates the grid-control and automaticly renders the new contents in the browser. No need for a AsyncReload() in that case.
In Intraweb this is written as WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('window.location.reload(true);');
And that is the implementation of TIWForm.AsyncReload!
2) Not sure what you excactly mean. Do you mean the statements that are in your page's constructor? Those are only called once on TIWForm object creation. TIWForm.OnRender is called on rendering the page. But I am not sure if that is what you are after.
Can't you create a method to fill the grid and call it from the IWTimer1AsyncTimer eventhandler?
By updating the grid, Intraweb invalidates the grid-control and automaticly renders the new contents in the browser. No need for a AsyncReload() in that case.

