Jump to content
Software FX Community

on click of pie chart page should not refresh(ajax)


rao
 Share

Recommended Posts

 

protected void Chart1_Click(object sender, HitTestEventArgs e)

{

 if (e.HitType == HitType.Point)

 {

lblData.Text = Chart1.Data[e.Series, e.Point].ToString();

}

}

data is not displaying in the lblData.text. i have set chart.UseCallbackForEvents = true;

 

Link to comment
Share on other sites

Wait a minute.

You said: "My requirement page will not refresh when clicking the pie chart slice."

If you set UseCallbackForEvents = true, only the chart will be refreshed.

If you want to refresh another control you will have to either use some AJAX framework or do it on your own. Chart FX is capable of making AJAX calls to itself but it is not an AJAX framework. You may want to try using a ASP.NET AJAX UpdatePannel in which both the chart and the label are included. In this situation, you will not use UseCallbackForEvents but instead you will leave the AJAX functionality for the update panel to do.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...