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

Icons for custom command

3 Answers 226 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Imar Spaanjaars
Top achievements
Rank 1
Imar Spaanjaars asked on 24 Feb 2014, 10:45 PM
Hi there,

I have a kendo grid with a custom, unnamed command like this:

{ command: { text: "Download PDF", click: downloadPdf }, title: " ", width: "115px" }

How do I add an icon to the button? I tried setting the imageClass, like this:

{ command: { text: "Download PDF", click: downloadPdf }, title: " ", width: "115px", imageClass: "k-icon k-i-pencil" }

but the image never shows up. Things seem to work somewhat when I use one of the known commands like Edit or Destroy; I get the default icon, but not the one assigned by the k-i class. Any ideas?

Thanks in advance,

Imar

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 25 Feb 2014, 11:05 AM
Hello,

Please post your question in below forum.
Kendo UI Grid Forum

Thanks,
Jayesh Goyani
0
Jayesh Goyani
Top achievements
Rank 2
answered on 25 Feb 2014, 12:25 PM
Hello,

If you do not want to use any inbuilt command then please create template column for that.
By using the template column you can achieve this functionality.

Let me know if any concern.

Thanks,
Jayesh Goyani
0
Imar Spaanjaars
Top achievements
Rank 1
answered on 25 Feb 2014, 11:05 PM
Hi Jayesh,

My post seems to be in the correct Grid forum, isn't it? Or has it been moved by a moderator?

Anyway, thanks for your answer. A custom template it'll be....

Cheers,

Imar
Tags
Grid
Asked by
Imar Spaanjaars
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Imar Spaanjaars
Top achievements
Rank 1
Share this question
or