Hi I have a RadTextBox that has a Width set to 100%
In certain scenarios I need to change this to 90% so in my code behind I have the following in an If Then Statement....
Unfortunately in Visual Studio I get a wavy line under Unit.Percentage(90) and a ToolTips error stating....
Value of Type 'Telerik.Charting.Styles.Unit' cannot be converted to 'System.Web.UI.WebControls.Unit'.
What have I done wrong?
<telerik:RadTextBox ID="tb_Tools" runat="server" ReadOnly="true" Width="100%"></telerik:RadTextBox>In certain scenarios I need to change this to 90% so in my code behind I have the following in an If Then Statement....
If condition Then tb_Tools.Width = Unit.Percentage(90)End IfValue of Type 'Telerik.Charting.Styles.Unit' cannot be converted to 'System.Web.UI.WebControls.Unit'.
What have I done wrong?