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

Create a blank first column in the kendo ui grid and hide a column

1 Answer 585 Views
Grid
This is a migrated thread and some comments may be shown as answers.
satish
Top achievements
Rank 1
satish asked on 15 May 2013, 05:10 AM
Hello,
I am new to using kendo ui grid. I have a requirement where I want to display data in the grid using kendo ui grid.

I have added a div and using kendo ui grid I am able to display the data in the grid.

All the data is dynamic. All the columns are created at runtime/dynamically.
What I want is to have a first column in the grid which will display an image with click event to it.

Also at the same time after the image column there will be ID column that I want to hide. I want to bind it to grid and hide it as I will require that particular columns value on row click event.

So, I want the first column in the grid to be displaying a image/icon and want to hide the second (next column after the image column).

Please help me on this.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 May 2013, 10:53 AM
Hi Satish,

The image column can be implemented with a template column.

Columns can be hidden with the hidden property.

When the user clicks a row, you can retrieve the model for that row by using the Grid's dataItem method.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
satish
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or