Onclick event code behind

3 posts, 0 answers
  1. Frank
    Frank avatar
    22 posts
    Member since:
    Jun 2017

    Posted 13 Dec 2017 Link to this post

    Is there such a way where I can do a onclick on the pie chart series from a code behind?  I need to redirect to another web page on a series click and in the target page, I will show a grid of the detail data base of which series it got clicked and thus would like to pass the variable using a session.

     

    Thx.

  2. Frank
    Frank avatar
    22 posts
    Member since:
    Jun 2017

    Posted 19 Dec 2017 Link to this post

    Anyone?  If not from code behind, how do I identify which "pie series" got clicked using java script?
  3. Frank
    Frank avatar
    22 posts
    Member since:
    Jun 2017

    Posted 19 Dec 2017 Link to this post

    So I tried use the javascript:

     

                function OnSclick(args) {
                    alert(args.series.type);
                }

     

     

    where in the html of the chart paramter I have:

     

    <ClientEvents OnSeriesClick="OnSclick" />

     

    I get a message box saying "pie"

     

    but when I tried other such as "args.series.name" I get nothing nor .category.  

     

    So what is the correct "args.series.???" in order to get the name of the series?

Back to Top