|
<SfDialog Width="300px" ShowCloseIcon="true" AllowDragging="true" IsModal="false" @bind-Visible="@optionsVisible">
<DialogEvents Opened="open"></DialogEvents>
<DialogTemplates>
<Header>User Options</Header>
<Content>
<SfNumericTextBox Width="100px" TValue="int" @bind-Value="@ACW" Min="@ACWMin" Max="@ACWMax" StrictMode="true" Decimals=0 Placeholder="After Call Work Time (seconds)" FloatLabelType="@FloatLabelType.Always"></SfNumericTextBox>
<div class="content-wrapper">
<div class="sliderwrap">
<label>After Call Work Time</label>
<SfSlider @ref="slider" TValue="int" Min="@ACWMin" Max="@ACWMax" Value="@ACW">
<SliderTicksData ShowSmallTicks="true" Placement="Placement.After" LargeStep="5" SmallStep="1" Format="# secs"> </SliderTicksData>
<SliderTooltipData IsVisible="true" Placement="TooltipPlacement.Before" Format="# secs"></SliderTooltipData>
</SfSlider>
</div>
</div>
</Content>
</DialogTemplates>
<DialogButtons>
<DialogButton Content="Save" IsPrimary="true" OnClick="@onSaveClick" />
</DialogButtons>
</SfDialog>
@code{
SfSlider<int> slider;
public void open()
{
this.slider.Refresh();
}
} |
|
UG Documentation |
|
|
Demo link |
|
|
API reference |
|
With SyncFusion 20.2.0.36:
Error (active) CS1061 'SfSlider' does not contain a definition for 'Refresh' and no accessible extension method 'Refresh' accepting a first argument of type 'SfSlider ' could be found (are you missing a using directive or an assembly reference?)
I just downloaded your demo app (from
https://www.syncfusion.com/downloads/support/forum/157524/ze/DialogDesign-370987623.zip ) and upgraded its Syncfusion.Blazor package to 20.2.0.36. With that version of Syncfusion.Blazor it doesn't work anymore.
However, the problem of an SfSlider's thumb position not being set properly when the containing dialog is initially rendered is still present.
Who the heck does your QA?
Hi Dietfrid,
Greetings from Syncfusion Support.
We downloaded and checked the shared sample at our end in the latest version. In our previous shared sample, the 18.2.0.56 version has been used, and we have included a lot of breaking changes in our component. Kindly update to the latest NuGet Packages, which is the 20.2.0.38 version, and instead of using the Refresh method, we suggest you use the RepositionAsync method to update the slider’s thumb position at the initial render of the component.
We have attached the sample for your reference.
https://www.syncfusion.com/downloads/support/directtrac/general/ze/DialogDesign1461573395
Please check the shared details and get back to us if you need any further assistance
Regards,
Suresh.