Programmatic Binding

Thread is closed for posting
2 posts, 0 answers
  1. Jones
    Jones avatar
    20 posts
    Member since:
    Jun 2009

    Posted 13 Jul 2009 Link to this post

    Hi,

    My DataSet contains 4 columns namely col1, col2, col3, col4. (col3 and col4 are int)
    I am assigning DataGroupColumn as col1 XAxis DataLabelsColumn as col2.
    Now when I assign the dataset to Chart Datasource automatically col4 is taken as YAxis. How I can change it to col3? 

    Regards,
    Jones
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 15 Jul 2009 Link to this post

    Hi Jones,

    You can achieve the desired functionality like this:

    RadChart1.DataSource = myDataset; 
    RadChart1.DataManager.ValuesYColumns = new string[] { "col3" }; 
     
    RadChart1.DataBind(); 


    Hope this helps.


    All the best,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top