Hi Manolo,
We have analyzed your query, we have prepared workaround sample based on your requirements.
We have created simple
CountriesSalesData data model. This is used for grid data Source. We are also loading these data for chart. Initially chart loaded default data from source after you can give the selected grid data source based on your requirements.
You can get selected record by enable
SelectionType as Multiple and using
RowSelecting event. And also you can get multiple selected records by using the method called
this.getSelectedRecords();
We have summarized data getting from above method. You can summarize any format based on you requirements.
Please find the following code snippet to achieve your requirements.
Code Snippet [MVC]:
· Below code shows how to use Selection type and RowSelecting event as follows.
· Summarize the record as follows.
· Bind the data source to chart as follows.
Below screenshot illustrate this.
· First time chart load as default data source from source
· After I am selecting two fields from the grid. Then chart render by using Selection dataSource as
follows.
Please find the below Sample link to download the sample.
Sample Link:
Sample
Please let us know if you have any concern.
Thanks,
Vinothkumar Arumugam.