PDA

View Full Version : how can i Load the store every time from database?



hmnth1
16 Jul 2013, 3:42 AM
I am rendering a grid to a div when i click on a button from HTML. I am populating data from database using J SON and AJAX. When i click on the button for first time it is going to Data Base and get the records and displaying. But second , third... when i click on the button it is not going to the database.

I want every time to go to the database when i click on button.

Farish
16 Jul 2013, 5:18 AM
you might be using store.sync() method on the button click. If you use store.load() then it should load the store with data from the backend on each button click.