Reputation: 39
Am using extjs 3.0
I have a scenario like
on entering any data on text field and hit enter i have to show a grid based on the value of text field, user keeps on entering the data in text field. but once the grid is created am reloading the store based on the value of text field by setting the value to store as base param. on the first time of displaying grid focus is loosing from text field,once the grid is visible the cursor is focusing on the text field.
Am using focus method on text field but its not working...
Help me thanks in advance
Upvotes: 2
Views: 2136
Reputation: 16847
You can defer the focus with:
field.focus(500) //This is 500 milliseconds
Upvotes: 1