On-click event

8 posts, 1 answers
  1. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 15 Mar 2010 Link to this post

    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
  2. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 16 Mar 2010 Link to this post

    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
  3. DevCraft banner
  4. Answer
    Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 18 Mar 2010 Link to this post

    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.
  5. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 18 Mar 2010 Link to this post

    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
  6. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 15 Oct 2010 Link to this post

    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.
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 20 Oct 2010 Link to this post

    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
  8. Willem-Jan Overink
    Willem-Jan Overink avatar
    1 posts
    Member since:
    Mar 2010

    Posted 28 Oct 2010 Link to this post

    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
  9. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Nov 2010 Link to this post

    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
Back to Top
DevCraft banner