Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default Show View from top when click on the button on same View.

    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.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    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).
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default Its a Sencah Touch Question.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •