Jump to content
Software FX Community

Chart disappear on postback


Recommended Posts

 System: WinXP Pro SP2, ChartFX for .NET 6.2 (Development)

 I created simple page with chart anf DropDown. AutoPostBack for DropDown set to true. When I change selection in DropDown, I get gray rectangle instead of my chart.

Has anybody had such a problem?



  <asp:Table ID="Table1" runat="server" Width="100%" BorderWidth = "1" BorderColor="#BEBEBE">   <asp:TableRow>   <asp:TableCell>   <asp:DropDownList runat="server" AutoPostBack=true>   <asp:ListItem Text="First"></asp:ListItem>   <asp:ListItem Text="Second"></asp:ListItem>   </asp:DropDownList>   </asp:TableCell>   </asp:TableRow>   <asp:TableRow>   <asp:TableCell Width="100%" >       <chartfx:chart id="Graph" runat="server" >       </chartfx:chart>   </asp:TableCell>   </asp:TableRow>   </asp:Table> 


  protected void Page_Load(object sender, EventArgs e)   {   PopulateGraph();   }   private void PopulateGraph()   {   Graph.OpenData(COD.Values, 1, (int)COD.Unknown);   Graph.Value[0, 0] = 1;   Graph.CloseData(COD.Values);   } 

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.

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.

  • Create New...