It’s been perhaps asked a million times already, but I failed to find a solution.
I have a page with a container, and the container is initially empty, but gets populated later via an AJAX request - for example, with a CGridView. The problem is that, since the page is originally empty, no CSS style for the widget is inserted.
When the widget is created later, it misses all the required styles and looks weird.
How can I force the page to include widget’s styles?
You probably need to find out which style sheet the widget uses and register it when you first load the page.