Hi,
I am using template coulmn and adding required field validator and span tag to show * in red color.
I am struggling eith the allignment of the same. Please find attached the images depecting few cases.
I have tried adding br tag after span tag, after required field etc but it is not alligned properly.
All I am trying to implement is to have a Red * in the initial load of the page and required field error message on next line. I also need to take care of the scenario of people working on different resolution screen. I have 5 required fields.
I am using template coulmn and adding required field validator and span tag to show * in red color.
I am struggling eith the allignment of the same. Please find attached the images depecting few cases.
I have tried adding br tag after span tag, after required field etc but it is not alligned properly.
All I am trying to implement is to have a Red * in the initial load of the page and required field error message on next line. I also need to take care of the scenario of people working on different resolution screen. I have 5 required fields.
<
telerik:GridTemplateColumn
HeaderText
=
"Site ID"
DataField
=
"SiteID"
UniqueName
=
"SiteID"
EditFormColumnIndex
=
"0"
SortExpression
=
"SiteID"
AllowFiltering
=
"true"
>
<
EditItemTemplate
>
<
telerik:RadTextBox
runat
=
"server"
ID
=
"txtSiteId"
Text='<%# Bind("SiteID") %>' MaxLength="50">
</
telerik:RadTextBox
>
<
span
style
=
"color: red"
>*</
span
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidatorSiteId"
runat
=
"server"
ErrorMessage
=
"Site Id is Required"
ControlToValidate
=
"txtSiteId"
ValidationGroup
=
"requiredFieldGroup"
>
</
asp:RequiredFieldValidator
>
</
EditItemTemplate
>
<
ItemTemplate
>
<%#Eval("SiteID")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>