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

On-click event

7 Answers 84 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Grtjn
Top achievements
Rank 1
Grtjn asked on 15 Mar 2010, 09:51 AM
Hi,

Is it possible to add an event to a radgauge that, when you click on this gauge another chart gets drawn ?
Is there samplecode available for this  (C#!)?

Kind regards,

Gertjan

7 Answers, 1 is accepted

Sort by
0
Grtjn
Top achievements
Rank 1
answered on 16 Mar 2010, 01:54 PM
Ok,

Since I don't get a reply I assume that this is not possible...
But can I dot it by clicking on a button?
If so, is there some code available?

Kind regards,

Gertjan
0
Accepted
Nikolay
Telerik team
answered on 18 Mar 2010, 08:49 AM
Hi GJ DM,

Please find attached a small sample project (you will need to add the assemblies), which shows how to draw a Chart when RadGauge in clicked.

Hope this helps.

Kind regards,
Nikolay
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
Grtjn
Top achievements
Rank 1
answered on 18 Mar 2010, 10:30 AM
Thanks Nikolay!

I looked at your code and could successfully add such an event to my project.
Even with data coming form my database.

Now I have another issue.
In my project I have 5 radgauges and i would like to have such an event on each gauge!
For my connection with the database i use a webservice.

Is it possible to pass a parameter to my webmethod referring to a value of my sqlcommand?
Code -->

public

 

LineDataList LineChart()

 

{

 

SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["DBConnection"].ConnectionString);

 

 

try

 

{

conn.Open();

 

SqlCommand SQL = new SqlCommand("select XValue, YValue from Dashboard_KPI_Trending where Name = 'oee'", conn);

 

 

SqlDataReader reader = SQL.ExecuteReader();

 

 

LineDataList LineResult = new LineDataList();

 

 

while (reader.Read())

 

{

LineResult.Add(

new LineData { Percentage = Convert.ToInt32(reader["YValue"]), Tijd = Convert.ToDateTime(reader["XValue"]) });

 

}

 

return LineResult;

 

}

 

catch

 

{

 

return new LineDataList();

 

}

}


So I would like my parameter to be a Name from my database...

Kind Regards,

Gertjan
0
Anatoly Chekh
Top achievements
Rank 1
answered on 15 Oct 2010, 09:55 PM
Hello!

I have the following problem:

I have multiple needles. I want to add click event on each needle. But Mouse Up Event is'n handled. (The same happens with mouse enter, leave and others).

Is there any solution for this issue?

Thanks!
Anatoly Chekh.
0
Andrey
Telerik team
answered on 20 Oct 2010, 03:52 PM
Hello Anatoly Chekh,

Unfortunately currently this is not possible as all mouse events are handled internally in the RadGauge for interactivity purposes.


Sincerely yours,
Andrey Murzov
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
Willem-Jan Overink
Top achievements
Rank 1
answered on 28 Oct 2010, 11:04 AM
currently it is not possible, does that mean telerik is working on that? Do you know if it is planned in a version?

Kind regards,
Willem-Jan
0
Andrey
Telerik team
answered on 01 Nov 2010, 05:07 PM
Hello Willem-Jan Overink,

I am afraid this is not in our current schedule.

Best regards,
Andrey Murzov
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
Gauge
Asked by
Grtjn
Top achievements
Rank 1
Answers by
Grtjn
Top achievements
Rank 1
Nikolay
Telerik team
Anatoly Chekh
Top achievements
Rank 1
Andrey
Telerik team
Willem-Jan Overink
Top achievements
Rank 1
Share this question
or