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

TextBox is readonly in template column

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 06 Aug 2012, 11:33 PM
I have a template column on my RadGrid with just a textbox in it.  I want the user to be able to enter text into the box as normal without the grid being in edit mode.  By default, the textbox seems to be read only and won't allow input.  I can't find any settings to allow the user to type into it.

<telerik:GridTemplateColumn HeaderText="Position" ItemStyle-CssClass="position">
  <ItemTemplate>
     <asp:TextBox ID="txtPosition" runat="server" Width="40" CssClass="txt" MaxLength="5" />
   </ItemTemplate>
</telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 07 Aug 2012, 07:19 AM
Hello Matt,

There is no reason for the TextBox to be disabled by adding it into the item template of template column.
Inspect the input element in your browser to see what CSS is applied to it? Remove the CssClass="txt" and ItemStyle-CssClass="position" to see if there is any difference.

Kind regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Matthew
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or