Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extjs 4 grid: Add a checkbox column without attaching to a datafield

I need to have a column in my Extjs grid with a checkbox which doesn't have a data field assigned to it. I have tried checkColumn plugin but it only works when I assign a data field to it.

What I mean is that it works for the following code:

{header: 'Business Call?',dataIndex: 'business', width: 55, xtype: 'checkcolumn'}

But for this code, it only displays a checkbox, but it's not clickable:

{header: 'Set Business Call', width: 55, xtype: 'checkcolumn'}

What I want to happen is, when the user ticks the checkbox, I need to do some operation on the respective database row. Is this possible with Extjs?

like image 685
vahissan Avatar asked Nov 17 '25 14:11

vahissan


1 Answers

What are you planning on doing with the clickable checkbox? If it's simply the act of clicking that you're trying to intercept, what is harmed by specifying a dataIndex?

like image 170
existdissolve Avatar answered Nov 19 '25 08:11

existdissolve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!