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

Width to fill remaining area

1 Answer 62 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 25 May 2016, 11:53 AM

Hi
I would like a RadNumericTextBox to extend its width to fill the Div its placed within.
This works fine when there is just a label and RadNumericTextBox. But when I place a RadDropDownList in front of the RadNumericTextBox
The Width doesn’t grow.
Please see the picture, and my markup code.
I have used many variations of css Setting the Width:100%; But try as I have, there seems something about the RadDropDownList that interferes.

Thanks for any help

Mark

 

<%--pcs_cost_per_unit--%>
                             <div class="rdfRow">
                                 <asp:Label ID="Label1" runat="server" AssociatedControlID="pcs_cost_per_unitTextBox" CssClass="rdfLabel" Text="pcs_cost_per_unit"></asp:Label>
 
                                 <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="RadDropDownListpcs_cost_per_unit" Width="50" DataMember="pcs_cost_per_unit_currency"
                                     SelectedValue='<%# DataBinder.Eval(Container.DataItem, "pcs_cost_per_unit_currency") %>'>
                                 </telerik:RadDropDownList>
                                 <telerik:RadNumericTextBox ID="pcs_cost_per_unitTextBox" runat="server" DataType="Decimal" DbValue='<%# Bind("pcs_cost_per_unit") %>' RenderMode="Lightweight" Skin="<%#Container.OwnerDataForm.Skin %>" CssClass="rdfInput" />
 
                             </div>
 
 
                             <div class="rdfRow">
                                 <asp:Label ID="pcs_dutyLabel2" runat="server" AssociatedControlID="pcs_dutyTextBox" CssClass="rdfLabel" Text="pcs_duty"></asp:Label>
                                 <telerik:RadNumericTextBox ID="pcs_dutyTextBox" runat="server" DataType="Double" DbValue='<%# Bind("pcs_duty") %>' RenderMode="Lightweight" Skin="<%#Container.OwnerDataForm.Skin %>" WrapperCssClass="rdfInput" />
                             </div>
                             <div class="rdfRow">
                                 <asp:Label ID="pcs_contingencyLabel2" runat="server" AssociatedControlID="pcs_contingencyTextBox" CssClass="rdfLabel" Text="pcs_contingency"></asp:Label>
                                 <telerik:RadNumericTextBox ID="pcs_contingencyTextBox" runat="server" DataType="Double" DbValue='<%# Bind("pcs_contingency") %>' RenderMode="Lightweight" Skin="<%#Container.OwnerDataForm.Skin %>" WrapperCssClass="rdfInput" />
                             </div>
                             <div class="rdfRow">
                                 <asp:Label ID="pcs_wastageLabel2" runat="server" AssociatedControlID="pcs_wastageTextBox" CssClass="rdfLabel" Text="pcs_wastage"></asp:Label>
                                 <telerik:RadNumericTextBox ID="pcs_wastageTextBox" runat="server" DataType="Double" DbValue='<%# Bind("pcs_wastage") %>' RenderMode="Lightweight" Skin="<%#Container.OwnerDataForm.Skin %>" WrapperCssClass="rdfInput" />
                             </div>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 27 May 2016, 12:44 PM
Hi,

Please share your exact page markup that demonstrates the described behaviour. Thus we will be bale to test it locally and advise you further.


Regards,
Maria Ilieva
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
NumericTextBox
Asked by
Mark
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or