I can not get the desired effect, following your instrcutions. Since I develop apps based on DNN, I cannot add <link href="../Skins/Web20/Grid.Web20.css" rel="stylesheet" type="text/css" /> into .aspx, which is dynamically created.
Hence, I implement a function to simulate the condition, whose code snippet is the following:
1. Implement dynamically inserting CSS link in a class within App_Code:
PlaceHolder cssHolder = (PlaceHolder)page.FindControl("CSS");
if (cssHolder.FindControl(id) == null) // This .css has not been added
HtmlGenericControl objLink = new HtmlGenericControl("LINK");
objLink.ID = id;
objLink.Attributes["rel"] = "stylesheet";
objLink.Attributes["type"] = "text/css";
objLink.Attributes["href"] = HttpContext.Current.Server.MapPath(filePath);
2. Invoke the preceding function at Page_Init of .ascx where the RadGird resident:
protected void Page_Init(object sender, EventArgs e)
// Install external css
Although the skin file within the .ascx, called GridModule, is loaded successfully as the .ascx is a standalone DNN module, it is still not loaded by GridModule that is loaded by the RadDock at first time the RadDock is added into the module, called DockModule,containing RadDocks. Again, if I click refresh the page, the skin is loaded properly.