Skin not being applied to RadInput

2 posts, 0 answers
  1. Nick
    Nick avatar
    26 posts
    Member since:
    Jan 2005

    Posted 21 Apr 2009 Link to this post

    Hi

    I have an fully AJAXed app where I create controls at runtime.

    I have a property on the page where I set the desired skin name.  I'm using EnableEmbeddedSkins="False" so that later I can create my own custom skin. 

    I then have custom server controls decended from CompositeControl where I create a RadTextBox in the CreateChildControls event.

      Controls.Clear;  
      Controls.Add(ControlFactory.CreateLiteral('<div class="fielddiv">'));  
     
      Controls.Add(ControlFactory.CreateLiteral('<span class="label">'));  
      ecLabel := &Label.Create;  
      ecLabel.Text := EcoControl.DisplayName;  
      Controls.Add(ecLabel);  
      Controls.Add(ControlFactory.CreateLiteral('</span><span class="field">'));  
     
      FTextBox := RadTextBox.Create;  
      FTextBox.Text := Value;  
     
      FTextBox.Skin := PageSettings.Skin;  
      FTextBox.EnableEmbeddedSkins := False;  
     
      Include(self.FTextBox.TextChanged, self.ecTextBox_TextChanged);  
      Controls.Add(FTextBox);  
     
     
      Controls.Add(ControlFactory.CreateLiteral('</span>'));  
     
      Controls.Add(ControlFactory.CreateLiteral('</div>')); 

    This is my header code from my page.

        <link href="/EcoGuiApp2/Skins/Menu.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/ToolBar.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/Grid.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/Widgets.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Menu.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Input.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Widgets.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/ComboBox.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/TabStrip.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Calendar.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/ToolBar.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
        <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Grid.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
     

    When I create my controls on the page, the TabStrip, Toolbars, Grids all have the correct skin, but the input does not get skinned, nor does the calendar control.  I also have a RadComboBox created the same way in another composite control that does get skinned correctly.

    If I set EnableEmbeddedSkins="True" then the skins are applied correctly, but this will mean I can't create a custom skin.

    I'm using version 2008.3.20.1125

    Any ideas what I'm doing wrong.

    Many thanks

    Nick Crisp
  2. Nick
    Nick avatar
    26 posts
    Member since:
    Jan 2005

    Posted 21 Apr 2009 Link to this post

    Hi

    I have found my problem.

    I was using an older version of the skins compared to the dll.

    Sorry....

    Nick
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top