v11.1 does it have ExcelExporter or it is after 11.2 version
I dont see this below. Is it only after 11.2 and ExcelExporter came from 11.2 ver and above?
The XamGrid excel exporter is something that was introduced in 11.2 so it is not available in 11.1. You do however have access to the Infragistics Excel Engine which can be used to export the XamGrid to excel. We have an example of this in our documentation as well.http://help.infragistics.com/NetAdvantage/Silverlight/2011.1/CLR4.0/?page=SL_Exporting_xamGrid_Data_to_Excel.html
Let me know if you have any further questions on this.
I agree, but this versoin does not export Grouped Columns and retain.
it just exports raw data.
thanks
Ray
Hi Ray,
You can still use it to export grouped columns. Whenever you add a Column to the GroupBy area, normal rows are replaced with GroupByRow objects. These are the header rows for each of the grouped rows. Inside this GroupByRow object is another Rows collection which contains the rows that are grouped under it. Using this you can export grouped data by checking if the the current row you are looking at is of type GroupByRow. If it is then you would then iterate through the GroupByRow.Rows collection and export those rows together, then move on to the next GroupByRow and do the same. This will export your data together with the grouping intact.
Thank you will try, but if you have some sample code handy would appreciate if you attach.
Rayudu
Here's a sample showing how you can export a XamGrid when you have columns grouped. The code supports any number of grouped columns. The important code is in the MainPage.xaml.cs inside the button click event.
Let me know if you have any questions on the sample.
Perfect
perfect. thanks
Hello Rayudu,
For exporting sub-totals after row data I have attached an updated sample.
Thanks verified.
Only thing is i want the subtotal after the row data when grouping.
right now. the header comes,. then sum/subtotal comes.
i need: header/row data/sum-subtotals. as the logic for placing the subtotals is inside the header loop. i see subtotals are in the 1st row of each grouped section. need at last row of each grouped section. that is the normal reporting.
For exporting totals and sub-totals when grouping records I have attached an updated sample.