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 %>' >
            <Items>
                <telerik:RibbonBarApplicationMenuItem Text="Exit" ImageUrl="~/Media/Images/Icons/16x16_exit.png" />
            </Items>
        </ApplicationMenu>
    </telerik:RadRibbonBar>

    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?

    Thanks,
    Eugene
  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 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.
     
    Greetings,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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