Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3526

grid/listbox: rod + autosort errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.4
    • 8.0.3
    • Components
    • Security Level: Jimmy
    • ZK 8.0.4 S1
    • None

      Steps to Reproduce

      run the attached example

      1. add items to the list model by clicking "add element" 2x or more
      2. click "clear model"
      3. add more items

      Actual Result

      after adding the second item the grid/listbox doesn't react anymore
      adding an item to an empty model (after "clear model") causes a JS error

      Expected Result

      all added elements should be rendered

      Debug Info

      when specifying a sordDirection the problem doesn't occur

      Root Cause

      in Grid.onListDataChange !isIgnoreSortWhenChanged() prevents rendering new items causing the JS error

            jackwei jackwei
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 4 hours
                3d 4h