Hi,
I have a textfield and a button in a tbar, when I write a text in textfiled and press the buttom start the load of a datastore for a grid.
Definition of the textfield
Code:
var searchField = {
xtype: 'textfield',
displayField: 'name',
valueField: 'name',
editable: true,
forceSelection: true,
triggerAction: 'all',
emptyText: 'Search...',
selectOnFocus: true,
Definition of the tbar:
Code:
searchField,
{xtype: 'tbbutton', text: 'Search', icon: 'images/bomb.png', handler: function(){
Store.load({params: { 'search': searchField.getvalue() }});
}},
All work correcrtly, I see the tbar, I see the test field and the button, alsto the ajax request work for load datastore but I not able to read the value of the text field by the function in button handler. (IN RED) then when I load the datastore the params SEARCH is always empity.
Thanks in advance
Steve
How I can do it ?