Initial value

Hello Syncfusion Team,

please see the attached sample from this thread:
You will see that the initial value of the slider is not displayed correctly. I also tried to follow
but the method .Refresh() is no longer available in the current version.

How to correctly display the initial value?

Best regards
Michael

3 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team March 5, 2021 01:03 PM UTC

Hi  Michael Pusch,  
 
Greetings from Syncfusion support. 
 
We have checked your reported problem with Slider component. Since, you are rendering the Slider as a child component for Dialog component and displaying the dialog only on a button click. On initial rendering, the parent(Dialog) of the Slider will have no width. So that Slider is not rendered properly.  
 
We have deprecated the refresh method. To resolve your problem, we suggest you to call the Reposition method of slider component inside the  Dialog open event. 
 
Please, refer the below code snippet. 
 
  <SfDialog IsModal="true" Width="@width" ShowCloseIcon="false" CssClass="piddia"> 
        <DialogEvents Opened="open"></DialogEvents> 
        <DialogTemplates> 
        </DialogTemplates> 
    </SfDialog> 
public void open() 
    { 
        this.slider.Reposition(); 
    } 
 
Please, refer to the modified sample for your requirement. 
 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer

MP Michael Pusch March 12, 2021 06:04 PM UTC

Thank you!


KR Keerthana Rajendran Syncfusion Team March 15, 2021 06:14 AM UTC

Hi Michael Pusch,  , 
 
Most welcome. We are glad that the provide suggestion helped you. Please get back to us if you need further assistance. We will be happy to assist you. 
 
Regards, 
Keerthana. 


Loader.
Up arrow icon