We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dynamic group grid binding with a chart

Thread ID:

Created:

Updated:

Platform:

Replies:

119881 Aug 10,2015 01:23 PM UTC Aug 14,2015 11:50 AM UTC ASP.NET MVC 5
loading
Tags: Grid
Manolo
Asked On August 10, 2015 01:23 PM UTC

Hi,

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

Sanjith Kesavan [Syncfusion]
Replied On August 11, 2015 12:47 PM UTC

Hi Manolo,
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.​


Manolo
Replied On August 12, 2015 06:46 PM UTC

Hi,

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

Isuriya Rajan [Syncfusion]
Replied On August 13, 2015 07:16 AM UTC

 

 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



Manolo
Replied On August 13, 2015 08:13 AM UTC

Thank you very much!

Isuriya Rajan [Syncfusion]
Replied On August 14, 2015 11:50 AM UTC

Hi Manolo,

Thanks for the update,

Please let us know if you require further assistance on this.
Regards,
Isuriya R



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;