Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1855
set zoombar in code
posted

i need to add buttons to filter by a certain time span.  I want to filter my data by 1,2,3,5 minutes.  the x axis of my xamdatachart.  for simplicity lets say its 6 hours of data. I can change the slider and filter the data but i want to add 2 buttons to increase or decrease the data shown. basically i want to add buttons taht automatically size the slider to show just the amount of data that was selected in the filter.  would i manually set the range. Is there a better way, if this is possible

Parents
  • 17475
    Offline posted

    Hello Pete, 

    I have been looking through your post and, if I understood your scenario correctly, you need to change the range of the zoombar so that it shows different part of the chart. This could be done by changing its minimum and maximum range properties. You could handle the click event of a button and include the following code line in it: xamZoombar1.Range.Maximum = xamZoombar1.Range.Maximum + 10; This will increase the range on the right side with 10.

    Here you could find additional information on the XamZoombar: http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamZoombar_Getting_Started_with_xamZoombar.html

    In the provided sample project (XamZoomarWidth.zip) when the button is clicked the maximum range is increased by 10.

    Please feel free to let me know if I have missed something in your scenario or if you have any questions regarding this.

    XamZoomarWidth.zip
Reply Children