Hi all,
Here's a weird situation. I am using ASP.NET web forms and have created a simple user control named TestControl.ascx. This control contains three asp:Labels. I went to design view in Visual Studio, then Tools -> Generate Local Resources. This created a App_LocalResources folder where the control is located, and added a TestControl.ascx.resx file within. I duplicated this file and named the duplicate copy TestControl.ascx.pt.resx to support Portuguese. I placed the control on a standard ASP.NET page and it works as expected.
Here is where Telerik seems to break it. I try to add a very simple telerik:RadGrid to the TestControl.ascx user control as follows:
Inside of the local resource files I have the following key: ProgramGridBoundColumnResource1.HeaderText and I set the value accordingly. For some reason, however, when I run this, I get a "Parser Error" that says type GridBoundColumn does hot have a property "HeaderTextpt". I have no idea why this is happening. It literally takes the '.pt' part out of the local resource file name (TestControl.ascx.pt.resx) and appends it to the property specified in the file. I have no idea why it is doing this. However, when I delete the .pt resource file and only have TestControl.ascx.resx (a single resource file), it seems to work just fine. It is only when I add a second resource file with the ".pt.resx" extension that it fails. I have also tried with spanish ('es') but to no avail.
Please provide guidance as to why this is happening!!!
Thanks,
- Patrick
Here's a weird situation. I am using ASP.NET web forms and have created a simple user control named TestControl.ascx. This control contains three asp:Labels. I went to design view in Visual Studio, then Tools -> Generate Local Resources. This created a App_LocalResources folder where the control is located, and added a TestControl.ascx.resx file within. I duplicated this file and named the duplicate copy TestControl.ascx.pt.resx to support Portuguese. I placed the control on a standard ASP.NET page and it works as expected.
Here is where Telerik seems to break it. I try to add a very simple telerik:RadGrid to the TestControl.ascx user control as follows:
<telerik:RadGrid runat="server" ID="TestRadGrid"> <MasterTableView runat="server"> <Columns> <telerik:GridBoundColumn UniqueName="ProgramColumn" HeaderText="Program" DataField="ProgramName" meta:resourcekey="ProgramGridBoundColumnResource1" /> </Columns> </MasterTableView></telerik:RadGrid>Inside of the local resource files I have the following key: ProgramGridBoundColumnResource1.HeaderText and I set the value accordingly. For some reason, however, when I run this, I get a "Parser Error" that says type GridBoundColumn does hot have a property "HeaderTextpt". I have no idea why this is happening. It literally takes the '.pt' part out of the local resource file name (TestControl.ascx.pt.resx) and appends it to the property specified in the file. I have no idea why it is doing this. However, when I delete the .pt resource file and only have TestControl.ascx.resx (a single resource file), it seems to work just fine. It is only when I add a second resource file with the ".pt.resx" extension that it fails. I have also tried with spanish ('es') but to no avail.
Please provide guidance as to why this is happening!!!
Thanks,
- Patrick