Created New Assembly Now What?

15 posts, 0 answers
  1. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 03 Nov 2009 Link to this post

    I created a new style with the builder and ran it thru the assembly builder so now I have a Folder with the Images/CSS and a dll file.  Where do I put these files now?  App_Code?
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 03 Nov 2009 Link to this post

    Hello Bradley,

    In cause you have created a custom embedded skin by using this tool:

    http://www.telerik.com/community/forums/aspnet-ajax/style-builder/tool-for-embedding-custom-skins-into-an-assembly.aspx

    ...or by using this application:

    http://www.telerik.com/community/code-library/aspnet-ajax/general/including-custom-stylesheets-as-webresources-to-radstylesheetmanager.aspx

    ... then you should place the DLL file in the BIN folder of your website and register the skins with RadStyleSheetManager, as demonstrated in the second link above. You will not need the non-embedded CSS files and images in the website.

    Greetings,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sarulatha
    Sarulatha avatar
    12 posts
    Member since:
    Mar 2012

    Posted 30 Mar 2012 Link to this post


    Hi Dimo,

                         In my project i have also created a seperate class library name "NISPCSSASSEMBLY" and added the images,.css,.skin files. I have added the this "NISPCSSASSEMBLY.dll" to the project folder and using the below code i am able to access the images.

    Default master code snippet:-
    -------------------------------------

    <

    telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">

     <StyleSheets>

     <telerik:StyleSheetReference Name="NispCSSAssembly.Default.css"

     Assembly="NispCSSAssembly"></telerik:StyleSheetReference>

     </StyleSheets>

     </telerik:RadStyleSheetManager>

     
    In Default master page we have to setup an imageurl, this absolutely points only to the current project location "~/App_Themes/Default/Images/loading.gif". Since we have moved the image in the seperate project location, How do we need to refer the image thruogh  Embeded assembly.

    Below is the sample code from Default master.Aspx:-
    -----------------------------------------------------------------
    <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanelCenter" runat="server" IsSticky="true">

    <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/App_Themes/Default/Images/loading.gif" >

    </asp:Image>

    </telerik:RadAjaxLoadingPanel>

    please advice..


    Regards,
    Subbu

     

  5. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 02 Apr 2012 Link to this post

    Hi Subbu,

    To access the web resource, the following code:

    <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/App_Themes/Default/Images/loading.gif" >
    </asp:Image>

    Should be changed to:

    <asp:Image ID="Image2" runat="server" AlternateText="Loading..." ImageUrl='<%=ClientScript.GetWebResource(typeof(BaselineResourceNames),"App_Themes.Default.Images.loading.gif")%>' >

    More info about accessing  WebRsources you could find at: ClientScriptManager.GetWebResourceUrl Method and ASP.NET forums Using Web Resources.

    Kind regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Sarulatha
    Sarulatha avatar
    12 posts
    Member since:
    Mar 2012

    Posted 03 Apr 2012 Link to this post

    Hi Bozhidar,

                      I have changed the code as shown below:

    <asp:Image ID="Image2" runat="server" ImageUrl='<%=ClientScript.GetWebResource(typeof(BaselineResourceNames),"NispCSSAssembly.Images.Loading.gif")%>' />

    But still i am not able to load the image.

    Do we need to refer any piece of code in Web.config file to access the images.

    Below are the changes i have done in my project:-

    1) Added the seperate class library NispCSSAssembly.
    2)Added the .css files and Images in the respective folder. [Note:i Have not used the AppThemes folder]
    3)Right clicked the .css and Image file properties Build action -> Embedded resource.
    4)Added the TelerikSkin.cs file.
     Below is the code added :-
     [assembly: WebResource("NispCSSAssembly.Default.css", "text/css", PerformSubstitution = true)]

     [assembly: WebResource("NispCSSAssembly.Images.loading.gif", "image/gif")]

     

    5) Added the <telerik:RadStyleSheetManager> reference in DefaultMaster page and trying to refer the image through Embedded assembely.

    Correct me if i am wrong with the above steps followed.

    Kind Regards,
    Subbu
  7. Sarulatha
    Sarulatha avatar
    12 posts
    Member since:
    Mar 2012

    Posted 03 Apr 2012 Link to this post

    Hi Dimo,
                           We are using the TelerikRadGrid conrol in most of the .aspx pages. We have created a global skin file named "Default.skin" where we have created a Structure of the grid with default properties.

    Please find the below code :-

    <

    telerik:radgrid Width="98%" SkinID="RadGrid" runat="server" allowpaging="true" allowsorting="true"

     allowfilteringbycolumn="true" autogeneratecolumns="False" enablelinqexpressions="False"

     gridlines="None" pagesize="10" allowautomaticinserts="false" allowautomaticupdates="false"

     allowautomaticdeletes="false" allowrowselection="true" >  

     

    </telerik:radgrid>


    By using the SkinID="RadGrid", we have accessed in the .aspx pages to apply the default properies for a RadGrid control.

    .aspx code:-

    <

    telerik:RadGrid ID="radGridsample" runat="server" SkinID="RadGrid" DataSourceID="objContGridClients"

    </telerik:RadGrid>

    I am not able to apply the default properties specified in the Skin file to the RadGridControl, while i am trying to access through Embedded assembely.

    Please advice..

    Regards,
    Subbu

  8. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 04 Apr 2012 Link to this post

    Hello Subbu,

    I would like to let you know that both your questions from your last two messages are posted in a wrong forum. This a thread related to the Visual Style Builder and how to create a new custom skin with that tool , but not how to configure it. Note that it was start two and a half years ago. The reasons to put the question in the right forum in that threads is to help other users that will font that topic to get the proper information without the necessity to start a new one.

    As we already answered here to your first question about the WebResource, we will do it again.

    As i could see form the description of your steps, everything seems to be done correctly. Probably you do not see the image, because you set a wrong path. Check it once again to find if this is wrong or not. If you think it is the correct one, but still do not see it on the page, I will ask you send us a simple sample running project with all files related to the issue, so we could test it further.

    So, about your second question about RadGird and Default skin, I will ask you to open a new support ticket and to mark that question is for RadGrid control. That will help us track easier the problem and will not confuse other customers that are expecting to find something useful in that thread about Visual Style Builder.

    All the best,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  9. Sarulatha
    Sarulatha avatar
    12 posts
    Member since:
    Mar 2012

    Posted 04 Apr 2012 Link to this post

    Thanks for the response.

    let me double check out the image path and update you with the sample project.

    Regards,
    Subbu
  10. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 06 Apr 2012 Link to this post

    Hello,

    OK, we are looking to hear from you if you managed to fix the issue or you need further help on that.

    Regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  11. Sarulatha
    Sarulatha avatar
    12 posts
    Member since:
    Mar 2012

    Posted 17 Apr 2012 Link to this post

    Hello,

              i am not able to attach the sample project. please help me out how to attach the .zip files.

    Regards,
    Subbu
  12. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 17 Apr 2012 Link to this post

    Hi,

    In the forum threads it is only allowed to attache screenshots (jpg, png, gif). In order to attach a zipped project, open a support ticket and you will be able to attach it.

    Regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  13. Sarulatha
    Sarulatha avatar
    12 posts
    Member since:
    Mar 2012

    Posted 17 Apr 2012 Link to this post

    Hello,

            How to tag the same thread when we create a support ticket, and what is the "Support for Your Products" to choose.

    Please advice.

    Regards,
    Subbu
  14. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 18 Apr 2012 Link to this post

    Hello,

    Open open a support ticket describe the issue you are experiencing and include the current forum thread url for clarification or the following ID: Ticket ID: 255360.

    In "Support for Your Products" pick - RadControls for ASP.NET AJAX.

    Kind regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  15. Sarulatha
    Sarulatha avatar
    12 posts
    Member since:
    Mar 2012

    Posted 18 Apr 2012 Link to this post

    Hello,

             i have created the support ticket and attached the sample project also.
    Ticket Id for reference : 535070 .

    Please let me know any concerns


    Regards,
    Subbu
  16. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 18 Apr 2012 Link to this post

    Hi,

    Thank you for letting us know. Your support ticket is already answered.

    Regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017