I have a WebDataGrid which is inside of a user control which is inside of the WebTab control using load on demand
The problem I am having (mostly in IE7 but sometimes IE8) is that the first time I click on the tab, it loads but when the grid renders it is missing most (if not all) of its styling.
If then then click to another tab and back to the original, all of the styling is there? I cannot figure why this is happening other than the CSS limitations in IE.
When I look at the page in Developer tools, it appears the ig_datagrid.css file is not loading the first time I go to the tab, but is the 2nd (even though when returning to the tab, nothing should load since the tab is already loaded).
Any ideas??
Hello,
Are you using the WebTab not the UltraWebTab?
Also what version of NetAdvantage are you using?
Thanks,
Valerie
I am using the WebTab, not the UltraWebTab.
I am using IG Version 2010 Volume 3 (10.3.20103.2013).
It would appear that the datagrid.css file is not loading when I first go to the tab with the grid. However, if I click off that tab to another (even if the other tab is already loaded and there is no postback), then back to the tab with the grid, then the styles are there.
It is only on the first time I go to the tab and does not happen if I go to another tab first.
Very strange.
If you can provide me with a sample that demonstrates the behavior you are seeing then I can look into why the CSS file is blank.
I wouldn't exactly say that I "resolved" the issue. I found a work around.
It does NOT explain why the last style sheet linked loads blank the first time the tab loads??
I am glad that you were able to resolve the issue.
Please let me know if I can provide any further assistance.
This is what I have, and what I have discovered.
The WebDataGrid is in a user control which is inside of a WebTab using Left/Top tabs. That WebTab control is inside of another WebTab control useing Top/left (standard) tab placement.
What i have discovered is that the datagrid.css is the LAST stylesheet being imported when the page runs. The problem is the stylesheet is importing completely blank.
To solve the problem, I linked a totally empty style sheet at the bottom of my usercontrol which houses the grid so that it will be the last style sheet added.
Doing this now allows the datagrid style sheet to not import empty and therefore I now have my styles.
Not sure why the last stylesheet being added is always coming in empty the first time the tab loads, but it is.
Thanks for the information
I followed the steps you suggested with the build you are using and was unable to reproduce the behavior you're describing.
I have provided the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem. Please add ig_res folder into the project before running the sample.
If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it, or attach a small sample project of your own if you have one.