I have various sliders in my application, and have noticed that every time the page (or even UpdatePanel) posts back, the slider's items flicker. When the slider's items are dynamically retrieved from a database, this flickering is much more noticeable and interfering. I tried implementing a simple slider with only a few hard-coded items, and I still get the flicker (see code below).
Is there any way to have my slider persist its items across postbacks, without having to re-draw them? Obviously, if I set AutoPostBack="false" then there won't be any flickering, but I would have no way to handle a value change.
I've already tried the following:
<asp:UpdatePanel runat="server" ID="upSlider"> |
<ContentTemplate> |
<telerik:RadSlider runat="server" ID="sldrTest" AutoPostBack="true" ItemType="Item"> |
<Items> |
<telerik:RadSliderItem Text="Value 1" Value="1" /> |
<telerik:RadSliderItem Text="Value 2" Value="2" /> |
<telerik:RadSliderItem Text="Value 3" Value="3" /> |
<telerik:RadSliderItem Text="Value 4" Value="4" /> |
<telerik:RadSliderItem Text="Value 5" Value="5" /> |
</Items> |
</telerik:RadSlider> |
</ContentTemplate> |
</asp:UpdatePanel> |
Is there any way to have my slider persist its items across postbacks, without having to re-draw them? Obviously, if I set AutoPostBack="false" then there won't be any flickering, but I would have no way to handle a value change.
I've already tried the following:
- Setting EnableAjaxSkinRendering="true"
- Setting EnableViewState="true"
- Setting AutoPostBack="false"
- Placing slider inside and outside of an <asp:UpdatePanel>
- Hard-coding slider items and dynamically adding slider items