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

RadControls directory

7 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 04 Nov 2008, 09:58 AM
I have a website that consists of 2 main areas, the public facing section and an admin section (loacted in an admin subdirectory)

Because the admin section will also be using RAD controls, Do I have to also copy the RadControls directory to the admin subdirectory or is there some way to set up a central 'reference' to them ?

7 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 04 Nov 2008, 10:44 AM
Hi Mark,

I assume that you are referring to the Classic version of our product bundle (RadControls for ASP.NET) although you posted the question in the ASP.NET AJAX General Discussions forum.

There are three possible options you may consider:
  1. Create a copy of the RadControls folder directly in the admin subdirectory
  2. Specify the location of the RadControls folder using the RadControlsDir property of each of the controls you use or globally in the web.config file
  3. Create a common virtual RadControls directory as explained in the following meta help topic
Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mww
Top achievements
Rank 1
answered on 04 Nov 2008, 11:13 AM
Yes, sorry I am referring to the classic version of the controls.  The strange thing is Im not actually using them, only the AJAX versions, but because I have an App_Themes directory and Im using the Vista theme, my project wont compile unless I have the references to the clasiic controls in my project.
Is this normal ?  I only want to use the ajax versions so how can I do so with the themes

** the error does show the problem as being in the themes directory
0
Sebastian
Telerik team
answered on 04 Nov 2008, 11:35 AM
Hello Mark,

In case you want to use the versions for the RadControls for ASP.NET Classic themes with the ASP.NET AJAX counterparts of the controls, you will need to modify the skin file of each theme definition as follows:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<telerik:[RadControlName] runat="server" .. Skin="<EmbeddedSkinName>">  
</telerik:[RadControlName]> 

Thus you can safely remove the unnecessary references to the Classic assemblies/RadControls folder.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mww
Top achievements
Rank 1
answered on 04 Nov 2008, 11:45 AM
Im a little confused when you say 'classic themes' do the ajax controls have their own different themes ?

Im also a little wary of modfying standard themes, what if theres an update and I overwrite any changes Ive made ?

I just want to be able to set the ajax controls to use themes as the classic controls did, but not have any references to the older version.  Does this not work 'out of the box' ? without having to make any modifications ?
0
Sebastian
Telerik team
answered on 04 Nov 2008, 12:22 PM
Hi Mark,

The ASP.NET AJAX versions of RadControls for ASP.NET AJAX are not shipped with a set of predefined themes, however you can convert the themes from the App_Themes folder of the RadControls for ASP.NET installation using embedded skins and following the code conventions outlined in my previous post.

Here is sample RadEditor skin file you can take for further reference:

<%--  
Default skin template. The following skins are provided as examples only.  
 
1. Named control skin. The SkinId should be uniquely defined because  
   duplicate SkinId's per control type are not allowed in the same theme.  
 
<asp:GridView runat="server" SkinId="gridviewSkin" BackColor="White" > 
   <AlternatingRowStyle BackColor="Blue" /> 
</asp:GridView> 
 
2. Default skin. The SkinId is not defined. Only one default   
   control skin per control type is allowed in the same theme.  
 
<asp:Image runat="server" ImageUrl="~/images/image1.jpg" /> 
--%> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<telerik:radeditor runat="server" SkinId="MinimalSetOfTools">  
   <Tools> 
    <telerik:EditorToolGroup > 
        <telerik:EditorTool Name="Bold" /> 
        <telerik:EditorTool Name="Italic" /> 
    </telerik:EditorToolGroup> 
   </Tools>      
</telerik:radeditor> 
<%--BASIC SET OF TOOLS--%> 
<telerik:radeditor runat="server" SkinId="BasicSetOfTools">  
    <Tools>      
    <telerik:EditorToolGroup Tag="MainToolbar">  
        <telerik:EditorTool name="AjaxSpellCheck" /> 
        <telerik:EditorTool name="FindAndReplace" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="Undo" /> 
        <telerik:EditorTool name="Redo" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="Cut" /> 
        <telerik:EditorTool name="Copy" /> 
        <telerik:EditorTool name="Paste" shortcut="CTRL+!"/>  
    </telerik:EditorToolGroup> 
    <telerik:EditorToolGroup Tag="Formatting">  
        <telerik:EditorTool name="Bold" /> 
        <telerik:EditorTool name="Italic" /> 
        <telerik:EditorTool name="Underline" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="ForeColor" /> 
        <telerik:EditorTool name="BackColor"/>  
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="FontName"/>  
        <telerik:EditorTool name="RealFontSize"/>  
    </telerik:EditorToolGroup> 
    </Tools> 
</telerik:radeditor> 
<%--DEFAULT SET OF TOOLS--%> 
<telerik:radeditor runat="server" SkinId="DefaultSetOfTools">  
    <ImageManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"     
    /> 
    <FlashManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"     
    /> 
    <MediaManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"     
    /> 
    <DocumentManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" 
    /> 
    <TemplateManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" 
   SearchPatterns="*.html,*.html" 
    />   
   <Links> 
        <telerik:EditorLink Name="telerik" href="http://www.telerik.com">  
           <telerik:EditorLink Name="Products" href="http://www.telerik.com/products">  
               <telerik:EditorLink Name="RadEditor" href="http://www.telerik.com/radeditor" /> 
            </telerik:EditorLink> 
            <telerik:EditorLink name="Purchase" href="http://www.telerik.com/purchase" /> 
            <telerik:EditorLink name="Support" href="http://www.telerik.com/support" /> 
            <telerik:EditorLink name="Client.Net" href="http://www.telerik.com/clientnet" /> 
        </telerik:EditorLink> 
        <telerik:EditorLink name="Microsoft">  
            <telerik:EditorLink name="Main Site" href="http://www.microsoft.com" /> 
            <telerik:EditorLink name="MSDN Online" href="http://msdn.microsoft.com" /> 
            <telerik:EditorLink name="Windows Update" href="http://windowsupdate.microsoft.com" /> 
        </telerik:EditorLink> 
        <telerik:EditorLink name="Search Engines">  
            <telerik:EditorLink name="Google" href="http://www.google.com" /> 
            <telerik:EditorLink name="Yahoo" href="http://www.yahoo.com" /> 
            <telerik:EditorLink name="AltaVista" href="http://www.altavista.com" /> 
        </telerik:EditorLink> 
    </Links>   
        <Snippets> 
            <telerik:EditorSnippet Name="Order Confirmation">          
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">  
                    Dear ____________________,<br /> 
                    Thank you for inquiring about ____________. Your request will be processed in 48 hours and shipped at the address you have provided.   
                    <br /><br /> 
                        <b>Please, contact us if you have any problems.</b> 
                    </div>        
            </telerik:EditorSnippet> 
            <telerik:EditorSnippet Name="Email Signature">  
                    <div style="margin-top:30px;width:80%;border-top:1px dotted gray;padding-top:4px;font-family:Arial, Verdana; font-size:11px;">  
                    <b>John Wigham</b><br /> 
                    Senior Web Developer<br /> 
                        <href="#">john@mysite.com</a> 
                        <br /> 
                            <br /> 
                                <i>Disclaimer: The contents of this e-mail are privileged and confidential and intended for the addressees at the specified e-mail addresses only.</i> 
                    </div> 
            </telerik:EditorSnippet>                  
            <telerik:EditorSnippet Name="Problem Report Feedback">  
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">  
                    Hi ____________________,<br /> 
                    Thank you for reporting this issue. We have verified the problem and it is logged in our system. We will notify you once we have a solution.   
                    <br /><br /> 
                        <b>Please, contact us if you have any problems.</b> 
                    </div>            
            </telerik:EditorSnippet> 
        </Snippets>      
</telerik:radeditor> 
<%--FULL SET OF TOOLS--%> 
<telerik:radeditor runat="server" SkinId="FullSetOfTools">  
    <Tools> 
    <telerik:EditorToolGroup Tag="MainToolbar">  
        <telerik:EditorTool name="AjaxSpellCheck" /> 
        <telerik:EditorTool name="InsertSymbol" /> 
        <telerik:EditorTool name="FormatCodeBlock" /> 
 
        <telerik:EditorTool name="FormatStripper" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="InsertFormElement" /> 
        <telerik:EditorTool name="InsertFormForm" /> 
        <telerik:EditorTool name="InsertFormButton" /> 
        <telerik:EditorTool name="InsertFormCheckbox" /> 
        <telerik:EditorTool name="InsertFormHidden" /> 
        <telerik:EditorTool name="InsertFormPassword" /> 
        <telerik:EditorTool name="InsertFormRadio" /> 
        <telerik:EditorTool name="InsertFormReset" /> 
        <telerik:EditorTool name="InsertFormSelect" /> 
        <telerik:EditorTool name="InsertFormSubmit" /> 
        <telerik:EditorTool name="InsertFormTextarea" /> 
        <telerik:EditorTool name="InsertFormText" /> 
 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="StripAll" /> 
        <telerik:EditorTool name="StripCss" /> 
        <telerik:EditorTool name="StripFont" /> 
        <telerik:EditorTool name="StripSpan" /> 
        <telerik:EditorTool name="StripWord" /> 
    </telerik:EditorToolGroup> 
 
    <telerik:EditorToolGroup Tag="EnhancedEditToolbar" > 
        <telerik:EditorTool name="ToggleScreenMode" /> 
        <telerik:EditorTool name="ToggleTableBorder" /> 
        <telerik:EditorTool name="Zoom" /> 
        <telerik:EditorTool name="ModuleManager" /> 
        <telerik:EditorTool name="ToggleDocking" /> 
        <telerik:EditorTool name="RepeatLastCommand" /> 
    </telerik:EditorToolGroup> 
 
    <telerik:EditorToolGroup Tag="InsertToolbar" > 
 
        <telerik:EditorTool name="ImageManager" shortcut="CTRL+M"/>  
        <telerik:EditorTool name="ImageMapDialog"/>  
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="FlashManager" /> 
        <telerik:EditorTool name="MediaManager" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="DocumentManager" /> 
        <telerik:EditorTool name="TemplateManager" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="InsertTable" /> 
        <telerik:EditorTool name="InsertRowAbove" /> 
        <telerik:EditorTool name="InsertRowBelow" /> 
        <telerik:EditorTool name="DeleteRow" /> 
        <telerik:EditorTool name="InsertColumnLeft" /> 
        <telerik:EditorTool name="InsertColumnRight" /> 
        <telerik:EditorTool name="DeleteColumn" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="MergeColumns" /> 
        <telerik:EditorTool name="MergeRows" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="SplitCell" /> 
        <telerik:EditorTool name="DeleteCell" /> 
        <telerik:EditorTool name="SetCellProperties" /> 
        <telerik:EditorTool name="SetTableProperties" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="IncreaseSize" shortcut="F10"/>  
        <telerik:EditorTool name="DecreaseSize" shortcut="F9"/>  
    </telerik:EditorToolGroup> 
    <telerik:EditorToolGroup>         
        <telerik:EditorTool name="Undo" /> 
        <telerik:EditorTool name="Redo" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="Cut" /> 
        <telerik:EditorTool name="Copy" /> 
        <telerik:EditorTool name="Paste" shortcut="CTRL+!"/>  
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="PasteFromWord" /> 
        <telerik:EditorTool name="PasteFromWordNoFontsNoSizes" /> 
        <telerik:EditorTool name="PastePlainText" />          
        <telerik:EditorTool name="PasteAsHtml"  /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="Print" /> 
        <telerik:EditorTool name="FindAndReplace" /> 
        <telerik:EditorTool name="SelectAll" /> 
    <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="InsertGroupbox" /> 
        <telerik:EditorTool name="InsertParagraph" /> 
        <telerik:EditorTool name="InsertHorizontalRule" /> 
        <telerik:EditorTool name="InsertSnippet" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="InsertDate" /> 
        <telerik:EditorTool name="InsertTime" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="AboutDialog" /> 
        <telerik:EditorTool name="Help" /> 
    </telerik:EditorToolGroup> 
    <telerik:EditorToolGroup> 
        <telerik:EditorTool name="Bold" /> 
        <telerik:EditorTool name="Italic" /> 
        <telerik:EditorTool name="Underline" /> 
        <telerik:EditorTool name="StrikeThrough" /> 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="JustifyLeft" /> 
        <telerik:EditorTool name="JustifyCenter" /> 
        <telerik:EditorTool name="JustifyRight" /> 
        <telerik:EditorTool name="JustifyFull" /> 
        <telerik:EditorTool name="JustifyNone" /> 
 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="Superscript" /> 
        <telerik:EditorTool name="Subscript" /> 
 
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="ConvertToLower" /> 
        <telerik:EditorTool name="ConvertToUpper" /> 
          
        <telerik:EditorTool name="Indent" /> 
        <telerik:EditorTool name="Outdent" /> 
        <telerik:EditorTool name="InsertOrderedList" /> 
        <telerik:EditorTool name="InsertUnorderedList"/>  
 
        <telerik:EditorTool name="AbsolutePosition" /> 
        <telerik:EditorTool name="LinkManager" /> 
        <telerik:EditorTool name="InsertAnchor"/>  
        <telerik:EditorTool name="InsertEmailLink"/>  
        <telerik:EditorTool name="Unlink" /> 
    </telerik:EditorToolGroup> 
    <telerik:EditorToolGroup Tag="DropdownToolbar" > 
        <telerik:EditorTool name="ForeColor" /> 
        <telerik:EditorTool name="BackColor"/>  
        <telerik:EditorSeparator Visible="true" /> 
        <telerik:EditorTool name="FontName"/>  
        <telerik:EditorTool name="FontSize"/>  
        <telerik:EditorTool name="RealFontSize"/>  
        <telerik:EditorTool name="ApplyClass"/>  
        <telerik:EditorTool name="InsertCustomLink"/>  
        <telerik:EditorTool name="FormatBlock"/>  
    </telerik:EditorToolGroup> 
   </Tools> 
   <ImageManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" 
    /> 
    <FlashManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" 
    /> 
    <MediaManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" 
    /> 
    <DocumentManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" 
    /> 
    <TemplateManager   
   ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"   
   DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" 
   SearchPatterns="*.html,*.html" 
    />   
   <Links> 
        <telerik:EditorLink Name="telerik" href="http://www.telerik.com">  
           <telerik:EditorLink Name="Products" href="http://www.telerik.com/products">  
               <telerik:EditorLink Name="RadEditor" href="http://www.telerik.com/radeditor" /> 
            </telerik:EditorLink> 
            <telerik:EditorLink name="Purchase" href="http://www.telerik.com/purchase" /> 
            <telerik:EditorLink name="Support" href="http://www.telerik.com/support" /> 
            <telerik:EditorLink name="Client.Net" href="http://www.telerik.com/clientnet" /> 
        </telerik:EditorLink> 
        <telerik:EditorLink name="Microsoft">  
            <telerik:EditorLink name="Main Site" href="http://www.microsoft.com" /> 
            <telerik:EditorLink name="MSDN Online" href="http://msdn.microsoft.com" /> 
            <telerik:EditorLink name="Windows Update" href="http://windowsupdate.microsoft.com" /> 
        </telerik:EditorLink> 
        <telerik:EditorLink name="Search Engines">  
            <telerik:EditorLink name="Google" href="http://www.google.com" /> 
            <telerik:EditorLink name="Yahoo" href="http://www.yahoo.com" /> 
            <telerik:EditorLink name="AltaVista" href="http://www.altavista.com" /> 
        </telerik:EditorLink> 
    </Links>   
        <Snippets> 
            <telerik:EditorSnippet Name="Order Confirmation">         
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">  
                    Dear ____________________,<br /> 
                    Thank you for inquiring about ____________. Your request will be processed in 48 hours and shipped at the address you have provided.   
                    <br /><br /> 
                        <b>Please, contact us if you have any problems.</b> 
                    </div>                
            </telerik:EditorSnippet> 
            <telerik:EditorSnippet Name="Email Signature">                
                    <div style="margin-top:30px;width:80%;border-top:1px dotted gray;padding-top:4px;font-family:Arial, Verdana; font-size:11px;">  
                    <b>John Wigham</b><br /> 
                    Senior Web Developer<br /> 
                        <href="#">john@mysite.com</a> 
                        <br /> 
                            <br /> 
                                <i>Disclaimer: The contents of this e-mail are privileged and confidential and intended for the addressees at the specified e-mail addresses only.</i> 
                    </div> 
            </telerik:EditorSnippet>                  
            <telerik:EditorSnippet Name="Problem Report Feedback">  
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">  
                    Hi ____________________,<br /> 
                    Thank you for reporting this issue. We have verified the problem and it is logged in our system. We will notify you once we have a solution.   
                    <br /><br /> 
                        <b>Please, contact us if you have any problems.</b> 
                    </div> 
            </telerik:EditorSnippet> 
        </Snippets>         
</telerik:radeditor> 
 

Hope this helps.

Regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mww
Top achievements
Rank 1
answered on 04 Nov 2008, 04:21 PM
I think its gonna be much simpler just to include the classic controls in my web project and distribute the required files

Why are there no themes ?  I find the themes that were shipped to be very useful for developing admin web based systems, but usually for public facing websites, Id use standard css.
0
Ivo
Telerik team
answered on 06 Nov 2008, 04:59 PM
Hi Mark,

Did you check this help article which describes how to use RadControls for ASP.NET AJAX with Themes?
http://www.telerik.com/help/aspnet-ajax/themeshowto.html

All the best,
Ivo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
mww
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
mww
Top achievements
Rank 1
Ivo
Telerik team
Share this question
or