We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Create button inline of Grid.

I am using NetCore. I want to a grid that contains a button for responding click event. Here is my snippet. I couldn't add eventlistener on to this button.

4 Replies

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team July 24, 2019 01:13 PM UTC

Hi Peng, 

Thanks for contacting Syncfusion support. 

we have validated your requirement. We suggest you to use custom command buttons to achieve your requirement. 
Please find the below documentation link for more information. 

Please get back to us, if you need further assistance. 


Seeni Sakthi Kumar S.

PX Peng Xie July 24, 2019 06:04 PM UTC

First of all, document is helpful for solved creating CRUD button. But the way of getting data from that row is outdated. Would please give more updated example to me.

PX Peng Xie July 24, 2019 06:11 PM UTC

More particularly, the cloest() method is not defined in you sample code

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team July 25, 2019 09:15 AM UTC

Hi Peng,  

Thanks for taking time to report the issue with the Help Document.  

Please follow the below code as of now. Use ‘ej.base.closes’ instead of ‘closest’.  

var onClick = function(args){ 
    var rowObj = grid.getRowObjectFromUID(ej.base.closest(args.target, '.e-row').getAttribute('data-uid')); 
    var data = rowObj.data; 

We have logged an UG improvement on the reported problem.  

Seeni Sakthi Kumar S. 

Live Chat Icon For mobile
Up arrow icon