-
26 Sep 2012 2:19 AM #1
Ext Js 4.1 How to add dropdown in grid column?
Ext Js 4.1 How to add dropdown in grid column?
Hello,
I have a grid and I want to insert "combo box" in grid column i.e. in cell.
How can I do it?
Thanking You in advance,
Mandar Dadpe
-
26 Sep 2012 2:52 AM #2
Hi Mandardadpe,
Use CellEditing plugin to add combobox in a single column like -
For more info read API docs -http://docs.sencha.com/ext-js/4-1/#!...in.CellEditingCode:Ext.create('Ext.grid.Panel', { title: 'Simpsons', // store: Ext.data.StoreManager.lookup('simpsonsStore'), selType: 'cellmodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 }) ], columns: [ {header: 'Name', dataIndex: 'name', editor: { xtype: 'combo', store: ['First', 'Second'] }}, {header: 'Email', dataIndex: 'email', flex:1}, {header: 'Phone', dataIndex: 'phone'} ], height: 200, width: 400, renderTo: Ext.getBody() });sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
1 Oct 2012 1:24 AM #3
Thank You Very Much Sword....:)
Thank You Very Much Sword....:)
You have solved my problem..thanks a lot..!!!
-
1 Oct 2012 1:27 AM #4
Can I use row editing instead of cell editing??
-
1 Oct 2012 9:53 PM #5
Yes you can use row editing Plugin according your need.
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
2 Oct 2012 1:59 AM #6
Ext Js 4.1 How to add dropdown in grid column?:
Ext Js 4.1 How to add dropdown in grid column?:
Thanks again Sword..!!! I have used row-editing accordingly.


Reply With Quote