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

[Solved] Export SelectionMode=Extended selected cells

3 Answers 153 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dean Wyant
Top achievements
Rank 1
Dean Wyant asked on 28 Jan 2011, 05:17 PM
I have my grid set to:
SelectionMode = System.Windows.Controls.SelectionMode.Extended;
SelectionUnit = Telerik.Windows.Controls.GridView.GridViewSelectionUnit.Cell;


I want to export the selected cells (SelectedCells). I understand that selected rows can be exported by setting the GridViewExportOptions.Items = grid.SelectedItems. However, setting it to grid.SelectedCells does not work, I get all of the headers and empty data columns. Basically, I want the same data as the clipboard copy when 
grid.ClipboardCopyMode = GridViewClipboardCopyMode.Cells;

 

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 03 Feb 2011, 08:00 AM
Hello Dean Wyant,

We are currently investigating the problem and we will contact you as soon as possible.


All the best,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Vlad
Telerik team
answered on 07 Feb 2011, 02:44 PM
Hi,

 Unfortunately currently this is not supported and we were unable to find any way to achieve this using the current grid API. We do our best to improve this in the future however we cannot commit any release date of such feature. 

Kind regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Dean Wyant
Top achievements
Rank 1
answered on 07 Feb 2011, 04:00 PM
The control already has code to copy the selected cells to the clipboard (although it has a bug). So, how difficult can the Export code be? Isn't it just a different output? Oh well... I am not going to use Cell selection anyway.

I think you are saying that RadGridView cannot export selected Cells - just FullRows. And, Telerik is not planning on adding the feature. Export can export everything or the SelectedItems (FullRow selection). It cannot export SelectedCells and there are no plans to provide Export for SelectedCells. OK, that is fine with me.

RadGridView's Extended Cell selection is not complete without the ability to Export the selected cells. It is not fully supported... there is only partial support for Extended Cell selection. Perhaps a mention of this limitation should be added to the documentation topic for the Extended Cell selection mode/unit? No, that probably would not help because the property documentation is pretty much useless anyway... so nobody refers to it.

I do not need Extended Cell selection. It is fine with me if you get rid of the entire selection mode. FullRow selection should be all that anyone should ever need. Who needs Cell selection anyway? And Export... that is a fancy feature... not many people would need that. So, it is very unlikely that anyone would ever need to Export selected cells.  

Please do not even consider spending programming time on this on my behalf.














Tags
GridView
Asked by
Dean Wyant
Top achievements
Rank 1
Answers by
Milan
Telerik team
Vlad
Telerik team
Dean Wyant
Top achievements
Rank 1
Share this question
or