Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Difference between HeaderStyle-Width attribute and HeaderStyle tag with Width attribute

$
0
0
Hi Rick,

Generally, your assumptions are correct. However, this is not Telerik specific, it is a general ASP.NET behavior:
<asp:GridView ID="GridView1" runat="server" HeaderStyle-BackColor="Orange">
    <HeaderStyle BackColor="Blue" />
</asp:GridView>

The visibility of the hyphenated main tag definitions of the properties is controlled by the following Attribute, which is usually added to the RadControlX.Public.cs file:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public ImageGalleryThumbnailsAreaSettings ThumbnailsAreaSettings
{
    
}

So it is up to your personal preference. As for the auto-generating of redundant nested tags, I am not sure what may cause it. Perhaps you are using some kind of Visual Studio designer generated code for configuring your RadGrid mark-up.

Regards,
Eyup
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

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>