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

[BUG - Q1-2011] GridTableBuilder should render <col> tags as self-closing.

2 Answers 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Parker
Top achievements
Rank 1
Parker asked on 30 Mar 2011, 08:10 PM

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 .../>).


2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 31 Mar 2011, 09:05 AM
Hello Parker,

Indeed you are right we will fix it immediately.

As a token of gratitude for bringing this problem to our attention I have also updated your Telerik points.

All the best,
Nikolay
the Telerik team
0
Parker
Top achievements
Rank 1
answered on 31 Mar 2011, 06:55 PM
Thanks Nikolay, the Telerik teams continues to be very responsive!
Tags
Grid
Asked by
Parker
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Parker
Top achievements
Rank 1
Share this question
or