This is a migrated thread and some comments may be shown as answers.

Hide ExpandColumn cell Icon while exporting

2 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hiren
Top achievements
Rank 1
Hiren asked on 17 Jan 2012, 05:58 PM
Hi,

We have used RAD Grid with GridTableView with HierarchyDefaultExpanded=True. Attached screen shot "ExpandedColumn Grid.JPG"
There is a provision to export the gird to PDF (Third party dll). We want to hide the expand column image from header and detail view.
I have tried using MyGrid.MasterTableView.ExpandCollapseColumn.Display = false;  This Hides the grouping row and only shows the detail grid in pdf. I have also tried
(rgdGenderAgeSummaryReport.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem)["ExpandColumn"].Visible = false;
  
            foreach (GridDataItem dataItem in rgdGenderAgeSummaryReport.MasterTableView.Items)
            {
                dataItem["ExpandColumn"].Style["display"] = "none";
                dataItem["ExpandColumn"].Visible = false;
            }

This also not working. Attached screen shot of PDF. Please suggest the solution. should be able to control at runtime.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Jan 2012, 04:52 AM
Hello Hiren,

Try setting the following.
ASPX:
<ExportSettings Excel-Format="Html" HideStructureColumns="true" ExportOnlyData="true"></ExportSettings>

-Shinu.
0
Hiren
Top achievements
Rank 1
answered on 18 Jan 2012, 07:41 AM
Hi,

I need for PDF, We are using RAWHTML (from PDFExporting event) and using this to generate PDF using third party dll.
Tags
Grid
Asked by
Hiren
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Hiren
Top achievements
Rank 1
Share this question
or