I have a grid with gridtemplatecolumns and each column has an item template of a label and and edit template of a textbox. HEre is my column:
The data it is retrieving has a tab in it, so for example "contact_name" is made up of first_name last_name (tab) contact_type
and in the edititemtemplate textbox, the tab is there, but in the label, the tab is not there. Does labels render tabs? And if not, is there another control I can use for the ItemTemplate to show the tabs?
Thanks,
Laura
| <telerik:GridTemplateColumn DataField="contact_name" HeaderText="Contact Name" |
| UniqueName="contact_name"> |
| <ItemTemplate> |
| <asp:Label ID="Label1" runat="server" Text='<% #Eval("contact_name") %>'> </asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:TextBox ID="contact_name" runat="server" Text='<%#Eval("contact_name") %>' Width="200px"></asp:TextBox> |
| <font color="blue">*</font> |
| <asp:RequiredFieldValidator ID="contactnameRequiredFieldValidator" |
| runat="server" ControlToValidate="contact_name" Display="Dynamic" ErrorMessage="required"></asp:RequiredFieldValidator> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
The data it is retrieving has a tab in it, so for example "contact_name" is made up of first_name last_name (tab) contact_type
and in the edititemtemplate textbox, the tab is there, but in the label, the tab is not there. Does labels render tabs? And if not, is there another control I can use for the ItemTemplate to show the tabs?
Thanks,
Laura
