Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Switch off RefreshInterval insude AsyncRefresh Event

Last post 05-05-2008 17:07 by [Infragistics] David Negley. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-20-2008 13:02

    • Erikice
    • Not Ranked
    • Joined on 12-19-2007
    • Points 145

    Switch off RefreshInterval insude AsyncRefresh Event

    Hi,

    I tryed to switch off the refresheinterval during  UltraGauge1_AsyncRefresh event, using following command: UltrGauge1.RefreshInterval = -1

    But it doesn't work, existing refresh timeout continue to run.

     Anybody as a suggestion or a turn around for switchoff the refreshinterval programmatically during the AsyncRefresh or other event?

    Thanks

    Erik

    Filed under:
    • Post Points: 20
  • 04-25-2008 15:44 In reply to

    Re: Switch off RefreshInterval insude AsyncRefresh Event

     i see this was submitted as a bug (BR32360), so a resolution should be forthcoming.  the gauge just wasn't designed to update the interval via async postback, but i think it can be arranged.

    you can clear the interval in javascript using this code:

    var g = ig_getWebControlById("UltraWebGauge1");

    window.clearInterval(g.interval); 

    • Post Points: 20
  • 04-26-2008 9:50 In reply to

    • Erikice
    • Not Ranked
    • Joined on 12-19-2007
    • Points 145

    Re: Switch off RefreshInterval insude AsyncRefresh Event

    Thank you David for your answer,

    my problem is that I load an user control (with inside the gauge) programmatically on my page, and there isn't a way for setup refreshinterval value.

    I tryed in different way but the value is always -1. [:'(]

    How I can set the refresinterval when I load the user control programmatically?

    Filed under:
    • Post Points: 20
  • 05-05-2008 17:07 In reply to

    Re: Switch off RefreshInterval insude AsyncRefresh Event

    i don't see why the RefreshInterval would fail if you're just dynamically loading a UserControl with a gauge and setting it... but another way to set the interval is through javascript... try rendering this to the page in your body.onload javascript handler, or using the Page.ClientScript.RegisterClientScriptBlock method.

     

    <script type="text/javascript">window.setTimeout("ig_getWebControlById("UltraWebGauge1").refresh();", 100);</script>

    • Post Points: 5
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems