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

"Generate Local Resource" also Rewrite Telerik Tags

5 Answers 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 13 May 2014, 11:36 PM
In order to create a new Local Resource file (RESX), I navigate to the Designer, and use the Tools --> Generate Local Resource option.  

The problem is that many of my telerik tags are getting rewritten during this process.  Is there a way to stop this?  

No standard ASP controls demonstrate this behavior - so I am wonder if this is something on the Telerik side?  

We do not use the designer view - except for this purpose - and I understand that it may just be inserting default attributes and tags that we did not write - but this adds to our code, and sometimes messes things up.

Is there a way to disable this - or a workaround?

For example, this:

<telerik:RadTextBox runat="server" ID="tCurrentAgency"  Width="200px" ReadOnly="True" SkinID="defaultText">
</telerik:RadTextBox>

becomes this:

<telerik:RadTextBox runat="server" ID="tCurrentAgency"
    Width="200px" ReadOnly="True" SkinID="defaultText" LabelCssClass="" LabelWidth="64px" meta:resourcekey="tCurrentAgencyResource1" Resize="None">
    <EmptyMessageStyle Resize="None" />
    <ReadOnlyStyle Resize="None" />
    <FocusedStyle Resize="None" />
    <DisabledStyle Resize="None" />
    <InvalidStyle Resize="None" />
    <HoveredStyle Resize="None" />
    <EnabledStyle Resize="None" />
</telerik:RadTextBox>


5 Answers, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 13 May 2014, 11:41 PM
And this:

<telerik:RadDatePicker runat="server" ID="dtStopDate" SkinID="defaultDate" Width="125" />

becomes this:

<telerik:RadDatePicker runat="server" ID="dtStopDate" SkinID="defaultDate" Width="125px" Culture="en-US" meta:resourcekey="dtStopDateResource1" >
    <Calendar EnableWeekends="True" FastNavigationNextText="&lt;&lt;" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
    </Calendar>
    <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" LabelWidth="64px" Width="">
        <EmptyMessageStyle Resize="None" />
        <ReadOnlyStyle Resize="None" />
        <FocusedStyle Resize="None" />
        <DisabledStyle Resize="None" />
        <InvalidStyle Resize="None" />
        <HoveredStyle Resize="None" />
        <EnabledStyle Resize="None" />
    </DateInput>
    <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" />
</telerik:RadDatePicker>
0
Accepted
Maria Ilieva
Telerik team
answered on 16 May 2014, 03:06 PM
Hello Dan,

The presented behavior is unexpected and it appears to be an issue with our controls. i will froward this case to our dev team so that we could revise our controls behavior in case of localization designer modifications and do the needful to fix this issue.

Thank you for reporting this case.


Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Dan
Top achievements
Rank 1
answered on 25 Feb 2016, 06:39 PM
Just curious... 18+ months on if a solution has been found to this problem?  Or a workaround?  
0
Maria Ilieva
Telerik team
answered on 01 Mar 2016, 02:16 PM
Hi,

Unfortunately we haven't made improvement on the designer of our controls as the last resales were mostly pointed to the mobile features of the controls. I will increase the priority of this request so that our development team can to their best to investigate it as soon as possible.
Excuse us for any inconvenience this behavior may lead.

Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Grant
Top achievements
Rank 1
answered on 06 Jul 2017, 11:09 PM

Hi,

Any advancement on this issue or suggested workaround? I am finding this a real problem using Generate Local Resource in VS 2017.

A lot of extra attributes are being added or removed from tags and child tags added to controls. (especially RadDatePicker).

It makes such a mess of my markup code that it's almost better to add all the required tags manually.

Tags
General Discussions
Asked by
Dan
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Maria Ilieva
Telerik team
Grant
Top achievements
Rank 1
Share this question
or