[CLOSED] Problem with chart controls and coolite

  1. #1

    [CLOSED] Problem with chart controls and coolite

    I'm having a few problems with some chart controls i use. Thay worked normally with the traditional asp.net controls, but with coolite they are not working. If i load them in page load everything works fine, the problem is loading them inside button click direct events... They simply don't get updated in screen. I guess the problem is that directevent click doesn't do a normal postback like asp.net normal button. I've tried 2 controls so far, Microsoft Chart Controls for Microsoft .NET Framework 3.5 and webChart (http://www.carlosag.net/Tools/WebChart/). Do you know of anything i can do to make these controls work together with coolite controls, or any other charting controls that work fine with coolite?
    Last edited by geoffrey.mcgill; Sep 28, 2010 at 7:17 PM. Reason: [CLOSED]
  2. #2
    Hi,

    1. I am not familar with webChart controls. You can try to call Update extension method during DirectEvent
    webChart1.Update();
    Although, .Update() method may not always work. It may depend on the ASP.NET control being updated.

    2. Microsoft Chart Controls (MCC) can be easly updated. You can try to call Update method (as above mentione). Or try the following scheme

    MCC has RenderType option. You can set RenderType="BinaryStreaming" and place control to the separate page
    <%@ Page Language="C#"  %>
    
    <script runat="server">
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // bind chart data here 
        }
    </script>
    
    <asp:Chart id="Chart1" runat="server" 
        RenderType="BinaryStreaming"
    >  
    </asp:Chart>
    in the base page use
    <img id="chart" src="myChartPage.aspx" />
    to update the image use the following js code
    Ext.fly('chart').dom.src = String.format('myChartPage.aspx?t={0}', new Date().format('U'));
  3. #3
    Where do i call Update() in Microsoft Chart Controls? In the chart? Couldn't find that method.
  4. #4
    Quote Originally Posted by Pablo Azevedo View Post
    Where do i call Update() in Microsoft Chart Controls? In the chart? Couldn't find that method.
    The .Update() Method is an Extension Method we've added and will be available on all System.Web.UI.Control objects.
    Geoffrey McGill
    Founder
  5. #5
    Thanks! I missed the "using Ext.Net". Calling Update() worked perfectly. Solved!
  6. #6
    Hi,

    The ExtJS charts has been included into Ext.NET v2.
    https://examples2.ext.net/#/Chart/Dashboard/Basic/

    More details about Ext.NET v2 are here:
    http://forums.ext.net/showthread.php?16883

Similar Threads

  1. This is a bug?Chart problem···
    By jiaxiang8756 in forum 2.x Help
    Replies: 4
    Last Post: Jul 17, 2012, 7:14 PM
  2. [CLOSED] Is there any Chart control in Ext.Net controls?
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 12, 2012, 4:08 PM
  3. Where is the Chart Controls
    By ismailkocacan in forum 1.x Help
    Replies: 0
    Last Post: Sep 19, 2011, 4:31 PM
  4. The Chart is Add in Coolite V1.0
    By fancycloud in forum Open Discussions
    Replies: 1
    Last Post: Jul 21, 2010, 12:55 AM
  5. Replies: 1
    Last Post: Nov 16, 2008, 5:16 AM

Posting Permissions