We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Using SfDateTimeRangeNavigator with non-DateTime X values?

Thread ID:

Created:

Updated:

Platform:

Replies:

127983 Dec 22,2016 01:09 PM Dec 27,2016 06:30 AM WPF 3
loading
Tags: SfDateTimeRangeNavigator
Ben M
Asked On December 22, 2016 01:09 PM

Hi,

I'm trying to create a UserControl to select a certain number of frames to view from an overall data set.

The overall data has X values of frame numbers (0 through N) as ints and Y values as doubles.

SfDateTimeRangeNavigator is the type of data selector that I'm looking for, but it seems to only be able to use X values in DateTime formats.

Is there any way to make SfDateTimeRangeNavigator work bound to X integer values?

I saw it's inherited class, RangeNavigator, which would work, but it doesn't have XBindingPath, ItemsSource, or SelectedData properties to use.

Could anyone advise me on this, please?

- Thanks


Devi Aruna Maharasi Murugan [Syncfusion]
Replied On December 23, 2016 06:07 AM

Hi Ben, 
  
Thanks for contacting Syncfusion Support. 
Currently, we do not have support for selecting the numerical values using SfDateTimeRangeNavigator. However, we have achieved your requirement by using SfRangeNavigator. We have prepared a demo sample based on your requirement and it can be downloaded from below link, 
  
  
Regards, 
Devi 


Ben M
Replied On December 23, 2016 10:39 AM

Thanks Devi!

Currently I can bind to ViewRangeEnd and ViewRangeStart, with your example, which gets the values as a percentage that the Thumbs are at.

Do you know if there's any way to convert the ViewRange values from a percentage along the line to the actual integer number that they represent along the X axis?

The actual formula for this is simple, I'm just having issues with the data Binding for the IValueConverter interface.

- Thanks

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On December 27, 2016 06:30 AM

Hi Ben, 
  
Thanks for your update. 
  
We have achieved your requirement by using value converter (converting view start and end range to corresponding coefficient value). We have prepared a demo sample based on your requirement and it can be downloaded from below link, 
  
  
Regards, 
Devi 




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;