-
4 Sep 2012 9:37 AM #1
Unanswered: Text Field in the header of a column
Unanswered: Text Field in the header of a column
Hi,
Is it possible to add a textfield (xtype:'textfield') to the header of a Ext.grid.Panel? Basically what I need is a 2 row column header where 1 row has the label and 1 row has a text field (order is not important). When the label is clicked the column should be sorted but when the textfield is clicked it shouldn't.
I tried the following but I'm getting this error: "headers[i].setSortState is not a function"
Code:var grid = Ext.create('Ext.grid.Panel', { store: store, columns: [{ layout: 'form', items:[ { xtype: 'textfield', fieldLabel: '<b>Test Label', name:"name_field", width:230 }] } ], height: 350, width: 600, title: 'Names', renderTo: 'data-table', viewConfig: { stripeRows: true } });
-
4 Sep 2012 10:28 PM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
HI!
have a look on this:-
http://www.sencha.com/forum/showthre...lterBar-plugin
http://www.sencha.com/forum/showthre...Header-Filters
Both above plugins used filter in grid header.check out the codes.sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
6 Sep 2012 4:53 AM #3
Thank you, that is what I was looking for. I tweaked the FilterBar plugin not to do any filtering and I also changed it so that all date columns have 2 date fields, for date range


Reply With Quote