RibbonBar.ApplicationMenu and Resources

3 posts, 0 answers
  1. Evgeniy
    Evgeniy avatar
    11 posts
    Member since:
    Mar 2012

    Posted 05 Jul 2012 Link to this post

    Good Day!

    I have my library for resources - Resources.dll.
    And I have UserControl with RibbonBar. But if I try to use text from my resource library for ApplicationMenu.Text property then Text is empty.
    Here is my ascx

    <telerik:RadRibbonBar ID="RadRibbonBar1" runat="server" Skin="Office2010Blue" Width="100%">
        <ApplicationMenu Text='<%=Resources.AdminMainMenu.Menu %>' >
                <telerik:RibbonBarApplicationMenuItem Text="Exit" ImageUrl="~/Media/Images/Icons/16x16_exit.png" />

    result of that is empty text for ApplicationMenu.
    But if I put the next code on ascx
    <%=Resources.AdminMainMenu.Menu %> 
    then I can see text from resource library

    Any idea?

  2. Bozhidar
    Bozhidar avatar
    1180 posts

    Posted 11 Jul 2012 Link to this post

    Hello Evgeniy,

    I've tested the case where I set the text of the application menu via resources, but it works fine on my end. Could you please open a support ticket and attach a runnable sample project reproducing the issue, so that I can investigate it locally. You can find instructions on how to isolate the problem in a sample project here.
    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.
  3. Evgeniy
    Evgeniy avatar
    11 posts
    Member since:
    Mar 2012

    Posted 27 Jul 2012 Link to this post

    I've figured out that was my mistake. My scenario wasn't working with any asp.net control.
    I use code behind now to build ribbon bar. Also it's possible if you use resources from App_GlobalResources folder.
    Thank you for your answer.
Back to Top