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

issue with RadNumeric textbox alignment inside the radgrid edit template

2 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neetha
Top achievements
Rank 1
Neetha asked on 02 May 2014, 09:40 PM
Hi, I added RadNumeric textbox inside the edittemplate of radgrid, but this is not aligned properly where as samething for textbox works perfectly fine. Attached screenshot for reference . Please check

 <EditItemTemplate>
                          <table id="tbleditJan"  runat="server" >
                          <tr ><td >
                                     <telerik:RadNumericTextBox ID="tbJan"  CssClass="radnumeric" Skin=""  runat="server"> 
                                   </telerik:RadNumericTextBox>

                       </td>/tr><tr><td style="width:35px !Important">
                                 <telerik:RadNumericTextBox ID="tbJanYellow"   CssClass="radnumeric"  runat="server">                               
                                   </telerik:RadNumericTextBox>
                                         </td> </tr> </table><EditItemTemplate>

Styles:

.radnumeric {
     width:35px !important;
}

span.radnumeric .riContentWrapper,
    span.radnumeric.riContButton.riContSpinButtons .riContentWrapper
    {
        width: 35px !important;
        padding-right: 0;
        
    }

2 Answers, 1 is accepted

Sort by
0
Neetha
Top achievements
Rank 1
answered on 05 May 2014, 02:39 PM
Any idea on this?
0
Princy
Top achievements
Rank 2
answered on 06 May 2014, 08:42 AM
Hi Neetha,

I'm not clear about your requirement, I guess you are having issue with the RadNumericTextBox width. Please try removing the Skin="" from the code and check if the issue exist. Please elaborate on your requirement if this doesn't help.

ASPX:
<EditItemTemplate>
    <table id="tbleditJan" runat="server">
        <tr>
            <td>
              <telerik:RadNumericTextBox ID="tbJan" CssClass="radnumeric" runat="server">
              </telerik:RadNumericTextBox>
            </td>
        </tr>
        <tr>
            <td>
              <telerik:RadNumericTextBox ID="tbJanYellow" CssClass="radnumeric" runat="server">
              </telerik:RadNumericTextBox>
            </td>
        </tr>
    </table>
</EditItemTemplate>

Thanks,
Princy
Tags
Grid
Asked by
Neetha
Top achievements
Rank 1
Answers by
Neetha
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or