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

RadGrid - Multiline Textbox not skinned

2 Answers 224 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dmc
Top achievements
Rank 1
dmc asked on 12 May 2009, 03:24 AM

I am using a textboxes in a FormTemplate.  The regular textbox is styled by the grid skin; for some reason the multiline textbox is not styled and font is defaulting to courier.  I tried overriding the with local css:

  

.GridEditForm_Telerik textarea   border:1px solid #828282; font:12px arial,sans-serif; color:#272722;  }

 

 

 

Any ideas?

Version 2009.1.311.35

Sample code:

<EditFormSettings EditFormType="Template" CaptionDataField="ClientName" >
 <FormTemplate>
  <table cellpadding="5" cellspacing="1" width="800" border="0">
       <tr>                                                        
    <td>Address:</td>
    <td>
         <asp:TextBox ID="txt_Addr" runat="server" Text='<%# Bind( "Addr") %>'
                    TextMode="MultiLine" Rows="4" Width="300">
                                        </asp:TextBox>
                         </td>
         </tr>
   <tr>
    <td>City:</td>
    <td>
     <asp:TextBox ID="txt_City" runat="server" Text='<%# Bind( "City") %>' Width="300">
           </asp:TextBox>
             </td>
   </tr>
           </table>
 </FormTemplate>
</EditFormSettings>

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 14 May 2009, 01:16 PM
Hello dmc,

RadGrid does not normally use textareas in its edit form, that's why there are no such styles in the skin.

If you are using Q1 2009, the CSS rule should be:

.RadGrid_Telerik   .rgEditForm  textarea
{
        ...............
}


Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
dmc
Top achievements
Rank 1
answered on 14 May 2009, 01:38 PM
Thanks, worked perfect.
Tags
Grid
Asked by
dmc
Top achievements
Rank 1
Answers by
Dimo
Telerik team
dmc
Top achievements
Rank 1
Share this question
or