kevina Posted April 23, 2007 Report Share Posted April 23, 2007 I am currently using the trial version to prove to my boss that this package is definitely worth the money. I am trying to have the gauges refresh on @ 1Hz by pulling values from a SQL database. I have it all working using an AJAX UpdatePanel and Timer. My problem is that the image seems to flash (refresh) every time it updates. Is there a way to correct this? Quote Link to comment Share on other sites More sharing options...
Frank Posted April 23, 2007 Report Share Posted April 23, 2007 The update panel should be preventing this. Are you sure you are using the UpdatePannel correctly? If you put another control inside the same panel (say a big image) does the image also flashes or only the Gauge? Quote Link to comment Share on other sites More sharing options...
kevina Posted April 23, 2007 Author Report Share Posted April 23, 2007 I just put another *.png file into the update panel right below the 2 gauges and it does not flash. But I seemed to have determined that it works fine under IE7 and only flashes using FireFox 2.0. Any ideas? Quote Link to comment Share on other sites More sharing options...
Frank Posted April 24, 2007 Report Share Posted April 24, 2007 Looks like an issue with UpdatePanel. I will take a look. Quote Link to comment Share on other sites More sharing options...
kevina Posted May 2, 2007 Author Report Share Posted May 2, 2007 I am still having a problem with images flashing. Here is the URL http://telematics.swri.org/ Any help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Frank Posted May 3, 2007 Report Share Posted May 3, 2007 I am unable to reproduce this problem. I tried the following WEB form with the code behind at the en and there is no flash of the gauge: <%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Register Assembly="ChartFX.WebForms.Gauge" Namespace="ChartFX.WebForms.Gauge" TagPrefix="ChartFXGauge" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <ChartFXGauge:RadialGauge ID="RadialGauge1" runat="server"> </ChartFXGauge:RadialGauge> <br /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Button" /> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html> Code Behind: Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) RadialGauge1.Border.Color = Drawing.Color.Aqua End Sub Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) RadialGauge1.Border.Color = Drawing.Color.Red End Sub End Class Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.