Page 1 of 1

Onclick on Grid column

Posted: Tue Jun 30, 2020 2:17 pm
by jedgeley

I have a grid . There i have column if i double click the particular column i needs to call my custom function that will do some operations. just like if we click button certain operations is happening right. Likewise i needs to do! Can you please suggest me on this!


Re: Onclick on Grid column

Posted: Tue Jun 30, 2020 2:57 pm
by jedgeley

I found the solution: May be it will help for some beginners.

While double-clicking the column there u need to perform any custom methods/functions you can refer the below code :

Solution :" cellDblClick" add this against your column

  listeners: {
                                        cellDblClick: ({ column }) => {
                                            if (column.field === 'column name') {
                                                alert('test');// your logic
                                            }
                                        }
                                    },

Re: Onclick on Grid column

Posted: Tue Jun 30, 2020 3:12 pm
by sergey.maltsev

Hi!
Yes, you are right.
If you need cell actions you may use cellDblClick Event listerner.
https://www.bryntum.com/docs/scheduler/#Grid/view/mixin/GridElementEvents#event-cellDblClick