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

[Solved] Unnecessary Markup

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 27 Jul 2013, 02:15 AM
I have noticed with many of the telerik control they will add default mark up to the XML page.

For example, I added text box and when to the properties windows and created a client side event, All this markup got added. It seems on some occasions it will write out the controls defaults to the XML.This creates a lot of extra code to sort through. 

<EmptyMessageStyle Resize="None"></EmptyMessageStyle>
<ReadOnlyStyle Resize="None"></ReadOnlyStyle>
<FocusedStyle Resize="None"></FocusedStyle>
<DisabledStyle Resize="None"></DisabledStyle>
<InvalidStyle Resize="None"></InvalidStyle>
<HoveredStyle Resize="None"></HoveredStyle>
<EnabledStyle Resize="None"></EnabledStyle>

I also noticed this happens a lot with the grid. I add a grid with a few columns, nothing special, and the markup is a mile long. Most i can go through and delete as its the default settings.

Is this a bug? Its really annoying with pages with lots of controls.

Thanks,

Kim

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 31 Jul 2013, 11:20 AM
Hi Kim,

We are aware of this behavior and our dev team is currently planning to revise the markup f all our controls generated from the designers and do the best to limit the unnecessary markup. Such a task will be added in the planning for the next Q.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
Tags
General Discussions
Asked by
Kim
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or