karaim Posted July 31, 2008 Report Share Posted July 31, 2008 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? Listings: Test.aspx <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> Test.aspx.cs 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); } 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.