This is a migrated thread and some comments may be shown as answers.

Skin not being applied to RadInput

1 Answer 78 Views
Input
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 21 Apr 2009, 01:50 PM
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

1 Answer, 1 is accepted

Sort by
0
Nicholas
Top achievements
Rank 1
answered on 21 Apr 2009, 02:33 PM
Hi

I have found my problem.

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

Sorry....

Nick
Tags
Input
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Nicholas
Top achievements
Rank 1
Share this question
or