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

Grid problem: empty header hides content of column

4 Answers 592 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Henk Jelt
Top achievements
Rank 1
Henk Jelt asked on 27 Aug 2012, 02:52 PM
Hi all

I have just installed the latest versions of the kendo scripts and run into something strange.

I have created a grid of five columns which I fill dynamically.
Four of the five columns are filled with text.
All of these four colums have a header.
The fifth column contains an icon with a hyperlink.
This column does not need a header text.

In the previous version of Kendo this worked fine: the fifth column was nicely filled with the icon.
However in the newest version the empty columnheader disables the icons on the screen.
They are visible in "View Source" but not on the screen.

If I fill the header with a text (containing digits or alphabetical characters) the icons show up.
If I fill the header with a few dots, or with a colon, they disappear again.

Did anyone had the same experience, and how can i solve this?
I do not want any text in the header.

KR

Henk Jelt

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 28 Aug 2012, 08:40 AM
Hello Henk,

We are not aware of such an issue. Can you please provide a simple example, so that we can see your implementation and check what causes the problem? Thank you in advance.

Kind regards,
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
Zachary
Top achievements
Rank 1
answered on 22 Aug 2013, 10:55 PM
Henk,

I am experiencing the same issue. In my case, it is a grid generated from a table.

http://jsfiddle.net/zacharydl/CWSxn/1/

Thanks,
Zachary
0
Dimo
Telerik team
answered on 23 Aug 2013, 06:20 AM
Hello Zachary,

You can use

<th data-field="randomFieldName">&nbsp;</th>

The idea of the table in this scenario is to serve as a Grid data source generator. The data fields are created from the header cells' content or the header cells' data-field attributes, so at least one of these two must be present.

http://docs.kendoui.com/getting-started/web/grid/walkthrough#grid-creation-from-an-html-table

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Zachary
Top achievements
Rank 1
answered on 23 Aug 2013, 04:51 PM
Wow. I never would have guessed that.

I'm set now, but as an aside I'd like to mention that I scoured the API reference. It would be helpful if the docs site were organized by component or simply had more links. I didn't think to jump over to "Getting Started" or "Tutorials".

Thanks!
Zachary
Tags
Grid
Asked by
Henk Jelt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Zachary
Top achievements
Rank 1
Share this question
or