This is a migrated thread and some comments may be shown as answers.

Problem setting RangeEnd and RangeStart on scroll bar after user inputs

6 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Maxwell
Top achievements
Rank 1
Maxwell asked on 22 Jan 2020, 03:35 PM

     I am programatically setting the RangeEnd and RangeStart of the scroll bar and moving it dynamically as data comes in. This works fine until you manually move the scroll bar. There is a case where the data is reset and I set RangeStart back to 0 and RangeEnd to a number greater that that (0.25 for example) but the scroll bar stays where it was if the user has touched it. If the user has not touched it the scroll bar resets just fine. I am curious if in the logic there is a setting that prevents setting RangeEnd and RangeStart once the scroll bar has been scrolled manually? If so is there a way to reset it outside of recycling the object?

6 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 27 Jan 2020, 11:48 AM

Hello Maxwell,

By RangeEnd and RangeStart, do you mean the HorizontalZoomRangeStart and HorizontalZoomRangeEnd (or VerticalZoomRangeStart/End) properties? If this is your case, it is possible that the manual setting of the properties and the user triggered update are in conflict. We don't have a concrete logic that does this exactly, but changing in both cases the same properties are updated, so it seems expected. 

Can you please share a runnable project showing this? This way I can see what exactly happens and think of a possible resolution. Also, a video showing the issue will be useful.

Thank you for any help you can provide.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Maxwell
Top achievements
Rank 1
answered on 29 Jan 2020, 04:32 PM
https://youtu.be/ngvFr8isa4s is a video of what Im talking about the I am adding .25 and .25 to the HorizontalRangeEnd and HorizontalRangeStart each time the chart fills up. I reset the start to 0 and end to .25 when I stop the chart the object still persist but when I start again if I have moved the scroll bar the bar doesn't actually reset...
0
Martin Ivanov
Telerik team
answered on 30 Jan 2020, 07:43 AM

Hi Maxwell,

I getting a message that is saying "This video is private".

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Maxwell
Top achievements
Rank 1
answered on 30 Jan 2020, 03:53 PM

I fixed it to where you should be able to view it now.

Thanks!

0
Accepted
Martin Ivanov
Telerik team
answered on 03 Feb 2020, 01:23 PM

Hello Maxwell,

Thank you for the video. I can see the issue, but there is no special code that prevents the manual properties update when the user touches the scroll. Can you show me the code that sets the HorizontalZoomRangeStart/End properties? Also, if you use data binding for those properties, can you use TwoWay binding mode? 

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Maxwell
Top achievements
Rank 1
answered on 06 Feb 2020, 10:01 PM
I think setting the binding to twoway explicitly worked
Tags
Chart
Asked by
Maxwell
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Maxwell
Top achievements
Rank 1
Share this question
or