Results 1 to 4 of 4

Thread: Can I temporarily disable NestedList Sort?

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Boston
    Posts
    150
    Answers
    5

    Default Can I temporarily disable NestedList Sort?

    Touch 2.1.0-rc2

    I have a sort set for a NestedList store. If I change any property in any record, it forces a sort (and scroll to top) for the entire list for every change.

    Sort seems to be very slow and a lot of sorts (15 records changed so 15 sorts) is noticeable to the user.

    I tried setting the store's sort to [ ] but then the displayed list gets reordered.

    Is there any way to disable the sort when I know I am changing many records or when I know I am NOT changing a sort field?

    And how do I keep it from scrolling to the top?

    Thanks
    David

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    For the scrolling to top you can try using the scrollToTopOnRefresh config on the list (so in listConfig)
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Boston
    Posts
    150
    Answers
    5

    Default

    Thank you for the scrollToTopOnRefresh.

    Should I be submitting the other problems as Bugs?

  4. #4
    Sencha User
    Join Date
    Mar 2013
    Location
    Ahmedabad, India
    Posts
    15
    Answers
    1

    Default How can i prevent sorting in sencha touch?

    I have applied sorting to store of List View. But then after i want to prevent that sorting. How can i do that in sencha touch latest?

Tags for this Thread

Posting Permissions

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