This is a migrated thread and some comments may be shown as answers.

Hi

9 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
safeer
Top achievements
Rank 1
safeer asked on 20 Aug 2010, 05:25 PM
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

9 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 23 Aug 2010, 08:04 AM
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
0
safeer
Top achievements
Rank 1
answered on 23 Aug 2010, 10:41 PM
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.
0
Milan
Telerik team
answered on 24 Aug 2010, 10:27 AM
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
0
safeer
Top achievements
Rank 1
answered on 24 Aug 2010, 11:24 AM
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?
0
Milan
Telerik team
answered on 24 Aug 2010, 12:12 PM
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
0
safeer
Top achievements
Rank 1
answered on 25 Aug 2010, 02:07 PM
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.
0
Giuseppe
Telerik team
answered on 26 Aug 2010, 11:12 AM
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
0
safeer
Top achievements
Rank 1
answered on 26 Aug 2010, 01:15 PM
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);
0
Yavor
Telerik team
answered on 31 Aug 2010, 03:33 PM
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
Tags
General Discussions
Asked by
safeer
Top achievements
Rank 1
Answers by
Milan
Telerik team
safeer
Top achievements
Rank 1
Giuseppe
Telerik team
Yavor
Telerik team
Share this question
or