Team,
We have some issue while reading hierarchical data from xamDataGrid for export to excel. Without expanding child grid rows if we try to read xamDataGrid hierarchical data then the ActualPosition.Column for all child fields returning 0 (Step1).
Once if grid child expanded then data will read as expected (Step2).
Please find the attached POC(ZIP) for your kind reference.
We are following the same on across the suite, please help to resolve this issue ASAP.
Observation Ex:
//Hierarchical child rows fields actualPosition problem : if grid is not expanded then ActualPosition.Column for all child fields shows 0
excelWorkSheetRow.Cells[record.FieldLayout.Fields[i].ActualPosition.Column + level].Value = record.FieldLayout.Fields[i].Label.ToString();
Please find the screenshot(ZIP):
XamDataGridExportData POC:
Step1:
Actual Result:
‘Field Name – Class’ is not displayed in the child row
‘Field Name – Line of business’ is not displayed in the child row
See attached excl screenshot “ImgStep1”
Expected Result:
‘Field Name – Class’ should be displayed in the child row
‘Field Name – – Line of business’ should be displayed in the child row
Step2:
Working as expected, See attached excl screenshot “ ImgStep2”
Please let me know if you need more information.
Thanks,
Guruprasad Gowda
Hello Guruprasad,
Thank you for your feedback. If you need any additional assistance, please do not hesitate to ask.
Maria,
Thanks for your quick update, I will check and get back to you.
Hello,
Thank you for posting!
I have been looking through your issue and what I could suggest you here is using the ExcelExporter in order the export the data to excel. I have modified the project you have attached in order to represent this approach.
Please have a look at the attachment and let me know if it helps you in resolving your issue.