SortingMethod issue after updateData()

Answered
Ilaria asked on March 28, 2023

Hi, 
there is an issue on the 'sortingMethod': it seems it is not applied after an UpdateData call. Here is a JSFiddle to riproduce the issue. I used the sortingMethod for customizing sorting for the 'Week' field and the sorting is indeed applied at the first load, but after the updateData() the sorting method is not called anymore (and the field is not sorted as I want)
Thank you in advance!
Ilaria

3 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster March 29, 2023

Hi Ilaria,

Thank you for reaching out to us. 

We will take a look at the described behavior and provide a fix with our minor release with the ETA April 17th. Our team will notify you about the release.
As a temporary workaround, you can call the sortingMethod after the updateData API call:

function UpdateData() {
      if (currentData == datax10) {
        currentData = data;
      } else {
        currentData = datax10;
      }
      this.pivot.updateData({
        data: currentData
      });
      pivot.sortingMethod("Week", sort);
}

You are welcome to write to us in case further questions arise.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster April 18, 2023

Hello, Ilaria,

We are glad to inform you that the issue with the sortingMethod() not being applied after updateData() was fixed.

This fix is provided in the 2.9.49 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-49/ 

You are welcome to update the component. Here is our guide on upgrading to the latest version: https://www.flexmonster.com/doc/updating-to-the-latest-version/

Please let us know if the fix works fine for you. Looking forward to hearing from you.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster April 25, 2023

Hello Ilaria,

Hope you are doing well.

We were wondering if you had a chance to check the fix. Please let us know if it works for you.

Looking forward to your feedback.

Kind regards,
Nadia

Please login or Register to Submit Answer