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

Grid adds an extra column "undefined"

2 Answers 197 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin Vanhove
Top achievements
Rank 1
Kevin Vanhove asked on 29 Oct 2011, 05:28 PM
Hi,

The grid seems to be adding 1 extra column per html column. This is my html table.

         <table id="jow"><br>          <thead><br>              <tr><br>                  <th data-field="title">title<th><br>                  <th data-field="jow">jow<th><br>                  <th data-field="ieps">ieps<th><br>              </tr><br>          </thead><br>          <tbody><br>              <tr><br>                  <td>1977<td><br>                  <td>1977<td><br>                  <td>1977<td><br>              </tr><br>              <tr><br>                  <td>1980<td><br>                  <td>1980<td><br>                  <td>1980<td><br>              </tr><br>          </tbody><br>         </table><br>         <br>        <script><br>            $("#jow").kendoGrid({<br>                 groupable: true,<br>                 sortable: true,<br>                 pageable: true<br>             });<br>        </script>    

And this is what i get:

<table cellspacing="0" id="jow" style="height: auto;" class="k-focusable"><colgroup><col><col><col><col><col><col></colgroup><br>          <br>          <tbody><tr><td>1980</td><td>undefined</td><td>1980</td><td>undefined</td><td>1980</td><td>undefined</td></tr><tr class="k-alt"><td>1977</td><td>undefined</td><td>1977</td><td>undefined</td><td>1977</td><td>undefined</td></tr></tbody><br>         </table>

What am i doing wrong here?

Thx,

Kevin,

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 31 Oct 2011, 09:22 AM
Hi Kevin,

The provided HTML markup is invalid. Please fix it and try again. Below is the same setup that works. I see that you have also tweeted on the matter. Maybe it is a good idea to post a follow up for the community, in order to avoid misunderstanding.

http://jsfiddle.net/gvz5J/



Best wishes,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kevin Vanhove
Top achievements
Rank 1
answered on 31 Oct 2011, 09:50 AM
Thx, works like a charm. The <td> elements weren't closed properly.
Tags
Grid
Asked by
Kevin Vanhove
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Kevin Vanhove
Top achievements
Rank 1
Share this question
or