We have a search page that has two panel controls - the first panel contains the search criteria controls and is the only panel visible on page load. The user specifies the search critiera and then clicks a "search" button, this runs the search and then hides the "Criteria" panel and shows the "Results" panel with the WebDataGrid - although the data is displayed the StyleSet (Windows7) that is specified for the WebDataGrid does not get applied or is not rendered. The "Results" panel has it's Visible flag set to false in the markup and is only made visible on the server side by virtue of a user executing a search. If I set the "Results" panel's visibility to "True" for the sake of troubleshooting the style does get applied - not sure why this is. Why is the style not applied at the time the WebDataGrid is made visible, regardless of it's previous visible state?
Hello,
I created a sample based on the description you provided and the styling displayed as expected. Please test the attached sample to see if it works on your end. If so compare it your application to see what is different.
Note that I removed some of the files from the Windows7 style set only to reduce the size of the attached file.
Thanks
Valerie
Valerie,
Thanks for the sample but it's a bit too simplistic to mimic my scenario. My webform is a content page that inherits from a master page that has a standard header and footer. My results WebDataGrid also has a templated column in it that is a hyperlink to the record "details". The weird thing is, even though the style may not load when I do the initial search - If I click on a record's hyperlink and open that up and then use the sitemappath breadcrumb to return back to the results view (I have custom SiteMapResolve handler to be able to return back to the "results" context of the search page) then the Windows7 style appears. Every once in a while it will work the first time but by and large it does not work when running through the Visual Studio IDE (WebDev server). Also - I have a WebDataMenu above my search result DataGrid that functions as a "toolbar" (suggested by Murtaza since there is not going to be an Aikido toolbar control like UltraWebToolbar) that has a single button that puts me back into "criteria" context and shows the criteria panel along with all the filtering controls so that the user can refine/modify the search criteria and redo the search. The WebDataMenu and WebDataGrid both have Windows7 style set but the WebDataMenu (app navigation) on the MasterPage uses the Default styleset - not sure if this is causing any problem but I would think that it would affect both the WebDataMenu (toolbar) and the WebDataGrid on the Search page if that were the case.
Regards,
Michael
I'm running into the same issue. Anytime, I have a multiview on the page or a panel set to visible false and the grid is inside the theme does not get applied on the first load. Any subsequent postbacks after that the theme loads ok.
I have been trying to fix this for a while. I was also sent a very simple sample that worked. So i started from scratch, I created a new page with only the datagrid and a button to load the data. Everything loaded ok as it should be.
As soon as I introduce a panel or a multiview into the page and set the visible property the theme disappears.
Has anyone found a solution for this?
I have the same issue.
To work around it, I place a second empty WebDataGrid with the same StyleSet in a div that has style="display:none".
Works for me... maybe give it a try? Not a "fix", but it works.