Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Re-sort records after new record is added

    I've found an interesting behaviour of the listgrid.

    We are currently using: SmartClient Version: v10.0p_2015-05-25/LGPL Development Only (built 2015-05-25)

    We have editable listgrid with client only datasource:
    data fetch mode - BASIC
    save locally - true
    can sort - false
    can reorder records - true
    There is initial sort

    After the data is fetched the sort is cleared (clearSort()) in order to add new records at the end of the list.

    Scenario:

    1. Load data
    2. Reorder some records
    3. Add new record
    4. The grid is sorted and the new positions of the records are lost

    My Question is how can i prevent the sorting after adding new record?

    #2
    You mentioned clearSort(). If you've called this, sorting would not be expected - we'd need to see a test case demonstrating that sorting still occurs after clearSort() has been called.

    If you are not already calling clearSort(), you'll need to if you want automatic sorting to be avoided.

    Comment

    Working...
    X