I want to override default width 125px with css class.
CSS
DIV.f21 INPUT, DIV.f21 TEXTAREA{width: 210px !important;}
ASPX
<div class="f21">
<rad:RadNumericTextBox ID="numericControlRadNumericTextBox" runat="server" SelectionOnFocus="CaretToEnd" Type="Number" Label="Numeric Control">
<NumberFormat AllowRounding="True" DecimalDigits="0" GroupSeparator="" />
</rad:RadNumericTextBox>
</div>
Rendered HTML
<SPAN class="radInput_WebBlue" id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_wrapper" style="WHITE-SPACE: nowrap"><INPUT class="radEnabledCss_WebBlue textAlignRight" id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_text" onblur="return numericControlOnBlur(this,'ctl00_DefaultContent_feinTextBox_numericControlErrorImage',false,'ctl00_DefaultContent_feinTextBox_numericControlHiddenField')" style="WIDTH: 125px" maxLength="9" value="" /><INPUT id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; VISIBILITY: hidden; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: -18px 0px 0px; OVERFLOW: hidden; PADDING-TOP: 0px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px" value="" /><INPUT id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_Value" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; VISIBILITY: hidden; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: -18px 0px 0px; OVERFLOW: hidden; PADDING-TOP: 0px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px" name="ctl00$DefaultContent$feinTextBox$numericControlRadNumericTextBox" value="" /><INPUT id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState" type="hidden" name="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState" autocomplete="off" value="" /></SPAN>
Problem
Since RadNumericTextBox render as span with 4 INPUT tags (3 are hidden with 1px width). Due to the f21 class all input except ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState gets width of 210px whereas from developer perspective it should only be applied to NumericTextBox added.
Please suggest a solution to fix the issue.
Also why needs width of 1px whereas ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_Value & ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBoxctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState dosn't have it?
Thanks,
Neeraj
CSS
DIV.f21 INPUT, DIV.f21 TEXTAREA{width: 210px !important;}
ASPX
<div class="f21">
<rad:RadNumericTextBox ID="numericControlRadNumericTextBox" runat="server" SelectionOnFocus="CaretToEnd" Type="Number" Label="Numeric Control">
<NumberFormat AllowRounding="True" DecimalDigits="0" GroupSeparator="" />
</rad:RadNumericTextBox>
</div>
Rendered HTML
<SPAN class="radInput_WebBlue" id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_wrapper" style="WHITE-SPACE: nowrap"><INPUT class="radEnabledCss_WebBlue textAlignRight" id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_text" onblur="return numericControlOnBlur(this,'ctl00_DefaultContent_feinTextBox_numericControlErrorImage',false,'ctl00_DefaultContent_feinTextBox_numericControlHiddenField')" style="WIDTH: 125px" maxLength="9" value="" /><INPUT id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; VISIBILITY: hidden; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: -18px 0px 0px; OVERFLOW: hidden; PADDING-TOP: 0px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px" value="" /><INPUT id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_Value" style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; VISIBILITY: hidden; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: -18px 0px 0px; OVERFLOW: hidden; PADDING-TOP: 0px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px" name="ctl00$DefaultContent$feinTextBox$numericControlRadNumericTextBox" value="" /><INPUT id="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState" type="hidden" name="ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState" autocomplete="off" value="" /></SPAN>
Problem
Since RadNumericTextBox render as span with 4 INPUT tags (3 are hidden with 1px width). Due to the f21 class all input except ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState gets width of 210px whereas from developer perspective it should only be applied to NumericTextBox added.
Please suggest a solution to fix the issue.
Also why needs width of 1px whereas ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_Value & ctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBoxctl00_DefaultContent_feinTextBox_numericControlRadNumericTextBox_ClientState dosn't have it?
Thanks,
Neeraj