allowSnapping and changed event

Hi,

I'm using the allowSnapping option and it works well. But when I fire changed event, I can't get the snapped value.
In fact, it seems that cahnged event isn't fired when the snap occurs.
Is there a way to get the snapped values ?


Thanks


8 Replies 1 reply marked as answer

SB Swetha Babu Syncfusion Team April 18, 2022 10:00 AM UTC

Hi Julien,


Greetings from Syncfusion.


We can get the snapped values by using the start and end argument in the changed event of the Range Navigator component. However, we have created a simple angular application to demonstrate the same. Please find the below link for your sample reference.


Sample link: https://stackblitz.com/edit/angular-1mh2ko?file=app.component.html


Kindly, revert us if you have any concerns.


Regards,

Swetha



JR Julien Regnery May 2, 2022 07:19 AM UTC

Hi Swetha,

Thanks for your answer. I tested it but without success


By holding the left click, I can place the cursor between two step. In this example, I move the mouse to the 28 Jan 22, 15:45:30

Capture d’écran 2022-05-02 091216.png


When I release the mouse, with the snapping option, the end of the range selector is automatically place on 28 Jan 22, 16:00:00

Capture d’écran 2022-05-02 091233.png


Here, everything is ok.


BUT, when I log the selected values in the console : 

{cancel: false, start: Fri Jan 28 2022 13:00:00 GMT+0100 (heure normale d’Europe centrale), end: Fri Jan 28 2022 15:45:30 GMT+0100 (heure normale d’Europe centrale), name: 'changed', selectedData: Array(6), …}

Because the changed event is never cast after the end value is moved, I cannot get the snapped value.


Any idea ?

Thanks



SB Sridevi Bharathi Manohar Syncfusion Team May 3, 2022 03:10 PM UTC

Hi Julien,


We have considered this as bug and logged a defect report. This fix will be available in our upcoming weekly patch release which is scheduled to be rolled out on 17th May 2022. We appreciate your patience until then. You can keep track of the bug from the below feedback link.


Feedback Link : https://www.syncfusion.com/feedback/34618/changed-event-start-and-end-argument-is-not-proper-when-allowsnap-is-true


If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.


Regards,

Sridevi Bharathi.



JR Julien Regnery replied to Sridevi Bharathi Manohar May 3, 2022 04:58 PM UTC

Thanks a lot.
I'll wait for your patch.



SB Swetha Babu Syncfusion Team May 4, 2022 04:58 AM UTC

Hi Julien,


Most Welcome! We will let you know once the weekly patch is released. Kindly, revert us if you have any concerns.


Regards,

Swetha



SB Swetha Babu Syncfusion Team May 20, 2022 06:51 AM UTC

Hi Julien,


We have included the fix for the reported issue in our weekly patch release(v20.1.0.56). ). Please update “ej2-angular-charts” package to the latest version to resolve the reported issue.


Replace the above package to resolve the reported issue. Kindly, revert us if you have any concerns.


Regards,

Swetha


Marked as answer

JR Julien Regnery May 25, 2022 06:50 AM UTC

Hello Swetha,

It works, thanks a lot !


Regards

Julien



SB Swetha Babu Syncfusion Team May 26, 2022 04:07 AM UTC

Hi Julien,


Most Welcome! Please get back to us if you have any concerns.


Regards,

Swetha


Loader.
Up arrow icon