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

RibbonBar.ApplicationMenu and Resources

2 Answers 49 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Evgeniy
Top achievements
Rank 1
Evgeniy asked on 05 Jul 2012, 09:48 PM
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 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 11 Jul 2012, 06:02 AM
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.
0
Evgeniy
Top achievements
Rank 1
answered on 27 Jul 2012, 09:06 AM
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.
Tags
RibbonBar
Asked by
Evgeniy
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Evgeniy
Top achievements
Rank 1
Share this question
or