GROUP CELL BACKGROUND COLOR CHANGE FOR EVERY GROUP/SUBGROUP AND COLUMN NAME BEFORE GROUP FIELD VALUE - EXPORT TO EXCEL /PDF
Hi,
Attachment: bank_master_demo_4b85841a.rar
In SFDATAGRID
1. How to change backgound colour of Cell for Group/Subgroup.. for Export to Excel as well as Export to PDF
Example :
If In Drag Group area If we have selected 5 Fields.. Col A, Col B, Col C, Col D and Col E
In Grid Data Area How Background Cell Color for A Field Groupwise = A Color, for B Field Groupwise (Subgroup) = B Color, for C Field Groupwise (Subgroup of B) = C Colour... on and on..
Please check the attached Excel Sheet with Current Result and Expected Result in REQUIRED RESULT-1 sheet
2. In Group result, field name with Field value of selected field for Grouping is required.
Please check the attached Excel Sheet with Current Result and Expected Result in REQUIRED RESULT-2 sheet.
Please note that both the result required while export to Excel and Export to PDF also.
Hope that you will understand and do the needful.
Attachment: bank_master_demo_4b85841a.rar
SIGN IN To post a reply.
1 Reply
JN
Jayaleshwari N
Syncfusion Team
January 11, 2019 12:15 PM UTC
Hi Deepak,
We have checked the reported queries. Please find the details as following.
|
Queries |
Details | ||
|
Set background color to each group based on the level in grid |
You can achieve your requirement by using DrawCell eventby checking the RowType as CaptionCoveredRow
You can refer the following user guide documentation to customize the caption summary cell.
| ||
|
In Group result, field name with Field value of selected field for Grouping is required. |
By default our SfDataGrid displays the group header with column name along with summary value.
You can refer the following screen shot.
| ||
|
How to change backgound colour of Cell for Group/Subgroup.. for Export to Excel as well as Export to PDF |
You can achieve this requirement by customizing the converter. You can refer the following code snippets.
Exporting to excel.
Exporting to PDF
|
We have attached the sample for your reference and it is available in the following location.
Sample link : http://www.syncfusion.com/downloads/support/directtrac/general/ze/141924_(2)-359854773
Please let us know if you would require further assistance.
Regards,
Jayaleshwari N.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
DE Deepak
- Jan 10, 2019 03:21 PM UTC
- Jan 11, 2019 12:15 PM UTC