I have the following two columns
<
telerik:GridTemplateColumn
HeaderText
=
"Year"
UniqueName
=
"Year"
Visible
=
"False"
Display
=
"False"
>
<
EditItemTemplate
>
<
asp:dropdownlist
runat
=
"server"
id
=
"ddlYear"
appenddatabounditems
=
"True"
>
<
asp:ListItem
Text
=
"-- Select Year --"
Value
=
""
/>
</
asp:dropdownlist
>
<
asp:requiredfieldvalidator
... />
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Fund"
UniqueName
=
"Fund"
Visible
=
"False"
>
<
EditItemTemplate
>
<
asp:listbox
runat
=
"server"
id
=
"lbFund"
selectionmode
=
"Multiple"
/>
<
asp:requiredfieldvalidator
... />
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
And here's the HTML output
<
tr
>
<
td
>
<
label
for
=
"..._ddlReportPeriod"
>Budget Year:</
label
>
<!--LABEL-->
</
td
>
<
td
id
=
"..."
>
<
select
name="...>
<
option
value
=
""
>-- Select Year --</
option
>
...
</
select
>
</
td
>
</
tr
>
<
tr
>
<
td
>
Fund Source:
<!--NOT A LABEL-->
</
td
>
<
td
id
=
"..."
>
<
select
size
=
"4"
...>
<
option
...></
option
>
...
</
select
>
</
td
>
</
tr
><
tr
>
How come in the first case, I get a <label> tag, but in the 2nd case I don't? Is there a way to fix this?
I trimmed the code as much as I could to make it readable.