Problem in binding data

Thread is closed for posting
2 posts, 0 answers
  1. Santosh
    Santosh avatar
    26 posts
    Member since:
    Oct 2007

    Posted 12 May 2008 Link to this post

    Hi,
    i have created RadChart1 like this.

    <

    radC:RadChart ID="RadChart1" runat="server" Skin="Vista" Width="465px" Height="260px" DefaultType="Pie">
    <ChartTitle>
    <TextBlock Text="Amount spent">
    </TextBlock>
    </ChartTitle>
    <Series>
    <radC:ChartSeries Type="Pie" DefaultLabelValue="#%" Appearance-LegendDisplayMode="ItemLabels">
    </radC:ChartSeries>
    </Series>
    <PlotArea Appearance-Dimensions-Margins="50,220,5,5" />
    </radC:RadChart>

    In RadChart1 i am showing Amount spent on transaction in the week. weekly amount is display in pie chart.

    i used code to bind value in radchar

    ds =

    Transactions.SearchTransByTransactionType(Convert.ToInt32(PWSddlTransactionType.SelectedValue));
    RadChart2.DataSource = ds;
    RadChart2.Series[0].DataXColumn =
    "KeyId";
    RadChart2.Series[0].DataYColumn =
    "Total";
    RadChart2.Series[0].DefaultLabelValue =
    "#Y";
    RadChart2.DataBind();
    using this code i am binding value to the radchart.

    Problem is

    when first time data bind to the radchart it display correctly. after changing date, I retrive data from the database and bind to the radchart but in the chart it shows the previous data plus new data's combination

    i need to remove previously binded value and bind new value to the radchart? how i will be solve this issue

    thanks & regards
    Santosh Lonkar

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 12 May 2008 Link to this post

    Hello Santosh,

    This has been fixed in the latest RadChart -- 2008.1.415. You can download it and give it a try.

    Regards,
    Ves
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top