Hi.
The Ajax LoadOnDemand is not working, except for tab content that has a URL for its content (a value for ContentUrl). If I change the content to a template or UserControlUrl the Ajax does not work (the whole page reloads).
You can even see this happening on the Samples Browser
http://samples.infragistics.com/2010.1/WebFeatureBrowser/Default.aspx
WebTab -> Load On Demand -> Web Data Grid tab
The Ajax on that page may or may not be working, its hard to tell, but at least it is not showing the loading icon like the other tabs.
I used the exact code from that page to test, am I doing something wrong?
-dave
Hi Dave,
The EnableLoadOnDemand alone does not mean async postback. It means that only content of selected tab is created on server and passed to client. Of course postback is full. If you need async postback, then you also should use EnableAjax. If both those properties are enabled, then on initial load only selected tab is loaded, but on all other postbacks (changes of selected tabs) all previously selected tabs are loaded as well. So strictly speaking that in not 100% LoadOnDemand. That limitation comes from framework of AJAX and event validation. The dot net does not support changes of once asynchronously loaded UpdatePanels: content all loaded UpdatePanels must be reloaded on all following async postbacks. Therefore WebTab has quite a logic related to get around that "feature" of AJAX.
WebTab also has extra property EnableLoadOnDemandViewState which is enabled by default. It has effect only when after few async postbacks a full postback happened. Application has choice to persist ViewStates of all once selected and modified tabs or reset their view states and start LoadOnDemand from over again.
can you provide an example of a webtab using Async update panels on three tabs would like them to update only when changed.
thanks
Al