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. Image for the cookie policy date

Define the default ViewRange of a RangeNavigator control

Hello,
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

3 Replies

SS Suresh S Syncfusion Team 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.


Regards,

Suresh S 


Attachment: RangeNavigator_Sample_bee9e764.zip


PG Pierre-Alain GALTIER 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)



MA Mohammed Azarudeen Syncfusion Team June 12, 2014 11:57 AM UTC

Hi,

 

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.

 

Regards,

Mohammed Azarudeen.

 


Loader.
Live Chat Icon For mobile
Up arrow icon