Refresh visible flicker/blink

Thread is closed for posting
6 posts, 0 answers
  1. Heri .
    Heri . avatar
    29 posts
    Member since:
    Mar 2010

    Posted 30 Jun 2010 Link to this post

    I've tried "",
    but I have noticed a blink/flickers. how to eliminate the blink
  2. Ves
    Ves avatar
    2916 posts

    Posted 01 Jul 2010 Link to this post

    Hi Heri .,

    You can use two chart images and swap them using javascript. You can find an example in this forum thread:

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Heri .
    Heri . avatar
    29 posts
    Member since:
    Mar 2010

    Posted 10 Nov 2010 Link to this post

    i use four chart but still blinking. i try in local network and client show chart still blink. and I've used the example in

    How to elimination blink ?
  4. Phil
    Phil avatar
    84 posts
    Member since:
    Apr 2005

    Posted 18 Nov 2010 Link to this post

    I have downloaded and tried that "solution", but it still flickers.

    My scenario is I have a dashboard which has six charts, and they are updated in turn via a timer so each one gets refreshed once every 12 seconds. This page was originally developed using the classic radcontrols, and has worked fine for a couple of years with no flickering. I am in the process of upgrading the application to the ajax radcontrols, and the flickering now makes the page unusable - I'd likely get sued for inducing epileptic fits.

    What did you break from the classic radcontrols to make the ajax chart control behave so badly?

    Is there any actual solution for this issue? The image switching makes no noticable difference that I can detect.

    I am using RadControls Ajax Q2 2010 SP1.
  5. Phil
    Phil avatar
    84 posts
    Member since:
    Apr 2005

    Posted 18 Nov 2010 Link to this post

    For anyone searching for a solution to this, here's what I have done. It seems to work. I'm basically using a normal image control to display the chart output, using javascript to set the image source to be the (hidden) charts image source. My example is refreshing on a timer, so I set the image source to a single pixel transparent gif so I don't see a red cross when the page loads.
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="chartswitch.aspx.vb" Inherits="chartswitch" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <head id="Head1" runat="server">
        <script type="text/javascript">
            function SwitchImg() {
                var panel1 = document.getElementById("<%=Panel1.ClientID%>");
                var chartimg = panel1.getElementsByTagName("img")[0];
                var myimg = document.getElementById("<%=myimg.ClientID%>");
                myimg.src = chartimg.src;
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False">
                    <telerik:AjaxSetting AjaxControlID="tmr1">
                            <telerik:AjaxUpdatedControl ControlID="Panel1" />
                <ClientEvents OnResponseEnd="SwitchImg" />
            <asp:Image ID="myimg" runat="server" src = "images/blank.gif" />
            <asp:Panel ID="Panel1" runat="server" style="display:none;" >
                <telerik:RadChart ID="RadChart1" runat='server' UseSession="true" CreateImageMap="False"
                        <telerik:ChartSeries Name="Series 1">
                                <telerik:ChartSeriesItem Name="Item 1" YValue="5" />
                <asp:Timer runat="server" ID="tmr1" Interval="10" />
    Partial Class chartswitch
        Inherits System.Web.UI.Page
        Protected Sub tmr1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmr1.Tick
            tmr1.Interval = 2000
        End Sub
    End Class

    No flicker!
  6. Phil
    Phil avatar
    84 posts
    Member since:
    Apr 2005

    Posted 18 Nov 2010 Link to this post

    add this line to the javascript function to get the imagemap as well:


    myimg.useMap = chartimg.useMap;

     - you'll need to make mying an imagemap rather than an image of course.


    Still no flickering!

Back to Top