Hi

10 posts, 0 answers
  1. safeer
    safeer avatar
    14 posts
    Member since:
    Nov 2006

    Posted 20 Aug 2010 Link to this post

    I want to use Silverlight controls in my asp.net application which is developed in .net framework 3.5. Can I use silverlight 4 controls or do I need some other version?
    Please help.

    Thanks,
    Safeer Ahmad
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 23 Aug 2010 Link to this post

    Hello safeer,

    Silverlight is a different runtime from the .Net Framework and there is not problem to use Silverlight 4 controls. You will only need .Net 4.0 if you intend to use Ria Servcies which required .Net 4.0.


    All the best,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. safeer
    safeer avatar
    14 posts
    Member since:
    Nov 2006

    Posted 23 Aug 2010 Link to this post

    Thanks very much for your help. Now I'm facing one more issue. I'm trying to add Linq to SQL classes in my Silverlight application but failing as it's not giving me a template to create that. My environment is Visual Studio.Net 2010 express edition and Silverlight 4. I don't want to use RIA services as I want to deploy it as a .net 3.5 solution. I need to create a sample to show my boss what we can achieve by using your charting controls so that he can allow me to purchase; I downloaded your samples but as being new to Silverlight I wasn't able to understand how to do it. Can you please help to show how can I get data from database to fill chart. A basic sample will really help me.
  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 24 Aug 2010 Link to this post

    Hello safeer,

    This blog post demonstrates how you can use RadChart with Ria Services. You can also check out this introductory video about Ria Services.

    Do not hesitate to ask if you need more help.


    Best wishes,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. safeer
    safeer avatar
    14 posts
    Member since:
    Nov 2006

    Posted 24 Aug 2010 Link to this post

    Thanks for your help but I don't want to use RIA services as mentioned earlier. Isn't there any other way around to get data?
  7. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 24 Aug 2010 Link to this post

    Hello safeer,

    Excuse me for the misunderstanding. 

    In that case, you will have to add your entity classes to a Web Project which will expose those classes through a web service which will be consumed by your Silverlight application.

    This MSDN article explains the whole process. 


    Sincerely yours,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. safeer
    safeer avatar
    14 posts
    Member since:
    Nov 2006

    Posted 25 Aug 2010 Link to this post

    Thanks a lot you ROCK :)
    I am trying to create a scatter chart which is doing good but I would like to to divide chart area in 4 equal rectangles.
    Please see the attached image. I have done all other stuff but not able to create a rectangle inside chart area.
    Please Help.
  9. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 26 Aug 2010 Link to this post

    Hi safeer,

    You can achieve the desired effect by drawing two custom gridlines -- you can find more information here.

    Hope this helps.


    Sincerely yours,
    Freddie
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. safeer
    safeer avatar
    14 posts
    Member since:
    Nov 2006

    Posted 26 Aug 2010 Link to this post

    Hi,

    Thanks for your help. I did see that sample but my problem is different. I would like to draw those lines at run time between
    Y and X-axis. But how do I get the centre point of Y and X of my chart series?
        
    CustomGridLine yline = new CustomGridLine();
                yline.Visibility = System.Windows.Visibility.Visible;
                yline.StrokeThickness = 3;
                yline.YIntercept = 140000 ;
                yline.Background = new SolidColorBrush(Colors.Blue);
                RadChart1.DefaultView.ChartArea.Annotations.Add(yline);

                CustomGridLine xline = new CustomGridLine();
                xline.XIntercept = 3000;
                xline.Visibility = System.Windows.Visibility.Visible;
                xline.StrokeThickness = 3;
                xline.Background = new SolidColorBrush(Colors.Blue);
                RadChart1.DefaultView.ChartArea.Annotations.Add(xline);
  11. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 31 Aug 2010 Link to this post

    Hi safeer,

     In order to draw the custom grid lines you need to know the axis's Max Value and range. You can get them on the RangeChanged event of the axis. Having these values you can correctly adjust the Intercept property of the custom grid line like this:

        radChart.DefaultView.ChartArea.AxisY.RangeChanged += new EventHandler(AxisY_RangeChanged);
        radChart.DefaultView.ChartArea.AxisX.RangeChanged += new EventHandler(AxisX_RangeChanged);
     
    void AxisX_RangeChanged(object sender, EventArgs e)
    {
        radChart.DefaultView.ChartArea.Annotations.Remove(xline);
        xline.XIntercept = radChart.DefaultView.ChartArea.AxisX.ActualMaxValue - radChart.DefaultView.ChartArea.AxisX.ActualRange / 2;
        xline.Visibility = System.Windows.Visibility.Visible;
        xline.StrokeThickness = 3;
        xline.Background = new SolidColorBrush(Colors.Blue);
        radChart.DefaultView.ChartArea.Annotations.Add(xline);
    }
     
    CustomGridLine yline = new CustomGridLine(), xline = new CustomGridLine();
     
    void AxisY_RangeChanged(object sender, EventArgs e)
    {
        radChart.DefaultView.ChartArea.Annotations.Remove(yline);
        yline.YIntercept = radChart.DefaultView.ChartArea.AxisY.ActualMaxValue - radChart.DefaultView.ChartArea.AxisY.ActualRange / 2;
        yline.Visibility = System.Windows.Visibility.Visible;
        yline.StrokeThickness = 3;
        yline.Background = new SolidColorBrush(Colors.Blue);
        radChart.DefaultView.ChartArea.Annotations.Add(yline);
    }

    Kind regards,
    Yavor Ivanov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner