View Full Version : Show View from top when click on the button on same View.

23 Nov 2012, 12:19 AM
I have a View with many controls on that and a list whose height sets dynamically according to the data
comes at runtime. Below the list , I have a button which added more jobs in the list.
Whenever I click on the button , it adds the data to the List but the page is not shown from the top .

I want to show the view from the top when the user clicks on the Show More Jobs button .

Plesase tells the solution that how to implement that functionality.

Thanks in advance.

26 Nov 2012, 7:44 AM
Is this a Sencha Touch question or Ext JS?

The widget will show whatever is in the store. If you use store.add then the records you pass in will be added to the end of the store (unless you have a sorter). If you use store.insert, the records will be added at the index you provided (unless you have a sorter).

26 Nov 2012, 8:17 PM
Whatever data is coming from the strore and show in the list is not my problem.

My problem is , I want to show the view from the top whenever i click on the buttom which is on the bottom of the page and the page size is bigger than the window height i.e. I scroll down my page to the end and click on the button and after clicking it adds the items to the list.

I want to refresh the view also so that it shows from the top .

Or u can say that

My widow height is 400px and page height is 600px and the button is placed at the bottom of page , and on button click , I want my page to show from the top