View Full Version : Display data after popup is closed

12 Dec 2012, 4:51 AM
I am displaying a popup that displays the search filter through which user can search the fields and after the user clicks on search the search popup closes and the data should be displayed. I am having a problem that the data is returned properly as it should be displayed but it is not displayed. Here is my code

text: 'Search',handler: function() {
method: 'POST',
url: root_path +'abc/def/ajax/file.php?task=SEARCH',
params : {'origid': origid},
success: function(f, a) {
//Ext.getCmp('orderGridPanel').store.load(); Here I want to display my data on success but I am not able to display the data
//var myWindow = Ext.getCmp('orderGridPanel');

failure: function(f, a) {
alert("Request failed");


In the formPanel the pop up is being displayed and it is the way I want.
Thanks in advance.

14 Dec 2012, 6:40 AM
So when you load the store does it fire a request?

14 Dec 2012, 6:47 AM
Yes, If I load the store after success it fires a request but the request is for listing. I think I have to do something like load Data to that store. Actually my store grid is in a variable and I call a function for the pop up. When the user selects the search criteria and the pop up closes I want to display the result of that search criteria but don't know how to display the data. Thanks for you reply.