Jump to content
Software FX Community

AJAX Compatibility problem...


fomur
 Share

Recommended Posts

 Hi,

 I have a problem with ChartFX chart that is not being shown after putting it under an update panel. My gauges are being updated after a triggering event, clicking radio buttons that have auto postback, but chart is not shown after such an event. I am putting my code below. Can you help me?

 ---BEGIN CODE----<asp:UpdatePanel ID="UpdatePanel1" runat="server">   <ContentTemplate>     <table style="vertical-align:top; width:800pt">   <tr>   <td style="border-style: solid; border-width: thin; vertical-align:top; padding-top:20px; height:50%; width:200pt ">   <div style=" padding-bottom:10px; text-align:center"><b>Campaign Type</b></div>   <asp:RadioButton ID="All" runat="server" GroupName="Campaign" AutoPostBack="true"   Text="All"  Width="150px" Checked="true" OnCheckedChanged="SelCampaign" /><br />   ... and other buttons...

  </td>   <td rowspan="2" style="width:600pt">   <chartfx7:Chart ID="Chart1" runat="server"   Height="500px" Width="800px" DataSourceID="SampleDBSource"   RenderFormat=".NET"> <Series>   <chartfx7:SeriesAttributes Text="Budget" Color="#cccccc"></chartfx7:SeriesAttributes>   <chartfx7:SeriesAttributes Text="Actual" Color="#ff9900"></chartfx7:SeriesAttributes>   <chartfx7:SeriesAttributes Text="Forecast" Color="#6699ff"></chartfx7:SeriesAttributes>   </Series>   </chartfx7:Chart>   <chartfxannotation:Annotations runat="server" ChartId="Chart1">   </chartfxannotation:Annotations>   </td>   </tr>   </table>  

  ... my gauges and some asp.net elements...

 

</ContentTemplate>   </asp:UpdatePanel>

 ----END CODE----  

 If you have any clues that you share with me i will really appreciate.

 

Link to comment
Share on other sites

Try to use callback using java script

var chartUniqueID = getChartUniqueID();document.all('CallbackWaitLabel').style.display = 'inline';

SFX_onCallbackReadyDelegate =

function (context, result) {document.all('CallbackWaitLabel').style.display = 'none';SFX_onCallbackReadyDelegate = null;};

SFX_RefreshCallbackData();SFX_SendUserCallback(chartUniqueID,parameterValue,

false);
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...