- Home
- Forum
- ASP.NET MVC
- dynamic group grid binding with a chart
dynamic group grid binding with a chart
I'm testing your controls, they are very powerful but I have a problem with chart controls.
I want bind a grid with a column chart. For example, in the image's grid, the X-axis are formed "Tipo", "Centro" and "Contrata", and Y-axis "promedio dias" value.
But when a user group by, for example, "Contrata", the chart X-axis must by grouped also, and Y-Values must be the summatory:
How can I do it?
Thank you very much
Thanks for using Syncfusion product.
We can’t able to understand your queries clearly.
In your first query you have mentioned “Tipo”, “Centro” ,“Contrata” are in the X-axis and “promedio dias” in the Y-axis. But in “Tipo” all the values are same. In “Centro’ and “Contrata” some of the values are repeating. So we have to create multiple X-axis for the same values.
In your second query after grouping also all the values are remains as same in “Contrata”.
Can you please provide a pictorial representation what kind of the chart you need. This will be useful for us to help you.
Regards,
Sanjith K.
Sorry for my English _:)
I'm testing the chart control associated with a grid, and I like know, when the user does grouping, the grid CompleteAction event is fired.
When I handle this event, How can I know that the action is grouping? And What columns are grouped?
Thanks
Hi Manolo,
Thanks for the details.
Grid CompleteAction event will be triggered when the Grid action is completed. We can know the current Grid action by using args.requestType, which represent the current Grid’s actions. By using the args.columnName you can find the column to be grouped.
|
<script> function CompleteAction(args) { if (args.requestType == "grouping") //args.requestType will represents the current grid action alert(args.columnName) //args.columnName will represents the grid column } </script> |
We have created a sample and the same can be downloaded from the following location:
http://www.syncfusion.com/downloads/support/directtrac/119881/Grid2-571397217.zip
Please refer the below documentation to know how we can use CompleteAction event for Grid columns.
http://helpjs.syncfusion.com/js/api/ejgrid#events:actioncomplete
Please try the above sample and let us know if it helps. If we misunderstood your query, please provide us clear information regarding your requirements. It will help us to provide the prompt solution.
Regards,
Isuriya R
Hi Manolo,
Thanks for the update,
Please let us know if you require further assistance on this.
Regards,
Isuriya R
- 5 Replies
- 3 Participants
-
MA Manolo
- Aug 10, 2015 01:23 PM UTC
- Aug 14, 2015 11:50 AM UTC