Remotely control the start and end of the rangenavigator?

Hello I am trying to setup two way binding with a third party chart. To do this I would need to be able to directly control the start and end range of the RangeNavigator. Is this possible?


2 Replies

FR Francis February 5, 2022 03:33 AM UTC

Found this rather hacky solution.. hope there is something better


this.$refs.nav.ej2Instances.startValue = startValue

this.$refs.nav.ej2Instances.endValue = endValue

this.$refs.nav.ej2Instances.renderSlider()



DG Durga Gopalakrishnan Syncfusion Team February 7, 2022 12:56 PM UTC

Hi Francis, 

Greetings from Syncfusion. 

You can also change the start and end value of rangenavigator using value property and call dataBind method to update the range navigator. We have prepared sample based on your requirement. Please check with below snippet and sample. 

changeValue: function() { 
              this.$refs.range.value = [new Date('2018-01-01'), new Date('2018-04-01')]; 
              this.$refs.range.dataBind(); 
    } 

Before Update : 

 

After Update : 

 


Kindly revert us if you have any concerns. 

Regards, 
Durga G 


Loader.
Up arrow icon