Kendo Grid Command Template onClick Expand Detail Row

1 Answer 157 Views
Grid
Katie
Top achievements
Rank 1
Katie asked on 04 Aug 2022, 03:10 PM

How is it possible to expand the detail row using a command button with template?

 

This is what I have so far, but the click event never fires.


columns: [
				{

	    			title: "",

	    			filterable: false,
					width: "60px",
					command: [
						{
							name: "viewDetails",
							text: "",
							click: OnClickViewDetails,
							template: "<button type='button' class=' hm-grid-btns k-button k-button-md k-button-rectangle k-rounded-md k-button-solid k-button-solid-base k-grid-viewDetails' title='View Job Details'><span id='viewDetails' class='k-icon k-i-eye k-button-icon'></span></button>"
						}
						
					] 
	    		},

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 09 Aug 2022, 09:01 AM

Hello, Katie,

Please take a look at this Dojo example and let me know if that is what you are looking for.

Regards,
Martin
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Tags
Grid
Asked by
Katie
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or