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

exporting the hidden columns

4 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gopinath
Top achievements
Rank 2
Gopinath asked on 14 Jan 2013, 09:26 AM
Hi,

I have binded the 10 columns to the grid and made 5 columns to visible false (IsVisible=False) , so that i can only show the 5 columns in the UI (as per requirement).

But while exporting i need the 10 columns to be exported (as per requirement). But this is not happening. I can export only the UI visible columns.

can any you please help me in this. 

4 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 14 Jan 2013, 01:33 PM
Hello Gopinath,

Indeed, you are right, if a column is hidden it will not be exported or printed. I have prepared an example project that handles such a scenario. Please, refer to it and let me know if this approach meets your requirements.


Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Gopinath
Top achievements
Rank 2
answered on 14 Jan 2013, 01:54 PM
Thank you Yoan ....

It's working as expected.

can you please let me know how to provide the active sheet name while exporting
0
Yoan
Telerik team
answered on 16 Jan 2013, 02:36 PM
Hello Gopinath,

You can achieve this by manipulating the exported stream. Please note that, it depends on which Export engine you use. It is possible to change the worksheet name for ExcelML only. MS Excel automatically sets the worksheet name (equal to the file name) when using the HTML format. 

For your convenience, I have prepared a sample project showing you the approach. Please find it attached.

I hope this helps.


All the best,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Gopinath
Top achievements
Rank 2
answered on 16 Jan 2013, 03:09 PM
Thank you Yoan ....

It's working great..

If you dont mind can you please let me know, how can i access the full path of the Filename from SaveFileDialog.


Thanks
Gopinath
Tags
GridView
Asked by
Gopinath
Top achievements
Rank 2
Answers by
Yoan
Telerik team
Gopinath
Top achievements
Rank 2
Share this question
or