views:

313

answers:

4

Hello, I need the capability to display a chart, click on a region and display the details in a jqgrid on the same page. I tried using a pie Chart and I can't seem to capture or create a click event for the chart.

The data points contain a .url property which I can redirect to a different page but I need to display details on the same page like a master-detail page.

A: 

I am sure that you receive success in using Microsoft ASP.NET Chart Controls, which can be used with MVC 1.0/2.0 on .NET 3.5 see http://code-inside.de/blog-in/2008/11/27/howto-use-the-new-aspnet-chart-controls-with-aspnet-mvc/ and which are included (in a new version) in ASP.NET 4.0.

Oleg
A: 

Oleg, thanks for your reply. I have used this example but my problem is a bit different. Because MVC doesn't support normal server side events, i am using the datapoint.url property to store the path of the controller and parameter. When the chart area is clicked, the url calls a controller passing along a parameter. The parameter value is always null so I can't retrieve data for the detail grid.

ben
A: 

Hello Jon Seigel I have the same problem if you solved it please send me a message

Denis
A: 

How do you call a method from controller? Something like this will not work:

     <%: Html.DropDownListFor(model => model.id, (SelectList)ViewData["Statuses"], new {onchanged = "/Home/Changed/", post= "true" })%>
ali