This question is locked. New answers and comments are not allowed.
GridTableBuilder should render <col> tags as self-closing in the Q1-2011 release.
The modified code (including the TagRenderMode.SelfClosing) is below. I couldn't submit a proper bug report before the link from PITS just put me on a page where I could search the forums.
If the Telerik source is on github / bitbucket or another open-source website, I'm happy to submit a patch.
public
class
GridTableBuilder
{
private
void
AppendCol(HtmlElement colgroup,
string
columnWidth,
bool
hidden)
{
var col =
new
HtmlElement(
"col"
, TagRenderMode.SelfClosing);
//........ more code omitted..........
}
}
Similar code exists in GridTableBuilderGroupColDecorator and GridTableBuilderDetailViewColDecorator
from: http://www.html-5.com/tags/col-tag/index.html#content-model
Since the
<col/>
tag is a void element, it is not allowed to have any content, evenHTML comments and therefore should always be coded as a self-closing standalone tag, ending with the delimiter string />
rather than just >
(<col .../>
).