This is a migrated thread and some comments may be shown as answers.
ASP.NET server control width
1 Answer 2 Views
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 03 Aug 2015, 10:58 AM

Another newbie question that has always perplexed me in terms of server controls. Width & height can be set both as a style or as a property:

<telerik:RadMenu ID="RadMenu1" Runat="server" style="Height=30px;" Height="50px">

What is the difference between the two and which should one actually use?

Thanks, Rob.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 04 Aug 2015, 07:20 AM
Hello Rob,

If you want to use the control's API to set its height (handling the proper height for all its nested elements), you should have the following configuration:
<telerik:RadMenu ID="RadMenu1" Runat="server" Height="50px"></telerik:RadMenu>

Please note, that style="Height=30px;" is invalid configuration and it is highly recommended to avoid it.


Regards,
Vessy
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
Asked by
Rob
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or