I have a WebTab control on a page with a WebDataGrid in one of the ContentTabItem - Template section - if I disable EnableLoadOnDemand (false) on the WebTab the style set on the WebDataGrid (Windows7), which is different from the WebTab (Default), is rendered but the grid is not databound - if I enable the EnableLoadOnDemand (true) then the WebDataGrid has the data but the style for the WebDataGrid is not applied at all. I really want to use the new WebTab but having to find all the right combinations of settings/flags is driving me nuts on the new AJAX controls. Any help would be much appreciated.
As a follow up - the first time I hit the desired tab with "EnableLoadOnDemand=false" it will load the style for the WebDataGrid but not databind - if I navigate to another tab then come back to the tab I wanted to load it will databind AND the style appears.
Hello Jensen,
Let me know if you have any further questions on this and if you're able to set the Windows7 styleset while using the EnableLoadOnDemand options.
Sincerely,Duane HoytDeveloper Support Engineer, MCTSInfragisticshttp://es.infragistics.com/support
Thanks for the information.
I have provided a sample using EnableLoadOnDemand option of the WebTab that contains two tabs and a WebDataGrid on each tab. You can look at the PostBackOptions node that contains EnableLoadOnDemand and EnableAjax attributes set.
Other things that are set:
- Application Styling is set in the web.config (There is also another option to set it on a control specifically in the aspx page). In this case I have set it as default since the control will automatically set as default.- Stub data was created (TestData) so that the grid can display using a DataSource. You can find this class under the App_Code folder.- Code for the DataSource was set under the Page_Load event of asp.net.
Also feel free to modify the sample using the Windows7 styleset.
Let me know if the sample provided works in your particular scenario.