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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Define the default ViewRange of a RangeNavigator control

Thread ID:





116569 Jun 10,2014 01:45 PM UTC Jun 12,2014 11:57 AM UTC WPF 3
Tags: RangeNavigator
Pierre-Alain GALTIER
Asked On June 10, 2014 01:45 PM UTC

I wonder if there is a way to define the first ViewRange displayed to the user after populating its datasource to show, for example, the last week of data.

Thank you

Suresh S [Syncfusion]
Replied On June 11, 2014 05:59 AM UTC

Hi Pierre,

Thanks for using Syncfusion products.

We have analyzed the reported requirement. Range navigator view range can be controlled by using ViewRangeStart and ViewRangeEnd property as shown in the below code snippet. Also, we have prepared the sample based on your query. Please download it from the given below location.

Code Snippet [XAML]:

<chart:SfDateTimeRangeNavigator x:Name="RangeNavigator" XBindingPath="Date" ViewRangeStart="1/1/2012" ViewRangeEnd="2/1/2012" ItemsSource="{Binding}">

Please let us know if you require further assistance on this.


Suresh S 

Attachment: RangeNavigator_Sample_bee9e764.zip

Pierre-Alain GALTIER
Replied On June 11, 2014 01:53 PM UTC

Thank you,
I did it this way, but I noticed a kind of offset in the two level bars (the higher and the lower)
After investigation, it appears that the slicing went wrong when several data per day exist and the first data is not timestamped to midnight.
So, I've open an incident in the direct-Trac support system (id: 126089)

Mohammed Azarudeen [Syncfusion]
Replied On June 12, 2014 11:57 AM UTC



We have analyzed your requirement. In our current version, the start range and the end range of the DateTime Range Navigator is placed without offset.

Could you please provide us a screenshot or a sample to reproduce this issue, which would be helpful for us to analyze further and assist you further.



Mohammed Azarudeen.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon