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

Grid Dynamic change of Command button using template

2 Answers 576 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 20 Feb 2017, 08:14 PM

I'm trying to set a command button using a template, but when I used the example from http://jsfiddle.net/valchev/Q69by/15/, the template does not seem to be running and the column is not being displayed.  I've created the following: http://dojo.telerik.com/@pnd@qad.com/AXIVU.  Can anyone tell me why the first button is not showing up and why how to get it to change based on the first column being boolean yes, then to change the text to "stop job" and if it is false, change it to "Start Job".

 

Any help is greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Hajigeorgieva
Telerik team
answered on 22 Feb 2017, 04:11 PM
Hello Paul,

The provided snippet works correctly, however, the column has a zero width. If you add some width to it, you will see the custom commands appearing based on the conditional statement.

http://dojo.telerik.com/oCUmU

For more information on column widths, please check the article at:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#width

Regards,
Alex Hajigeorgieva
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
0
Paul
Top achievements
Rank 1
answered on 22 Feb 2017, 05:12 PM
Thanks a million - works perfectly now.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Paul
Top achievements
Rank 1
Share this question
or