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

Problem with cell selection

4 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kwame Johnson
Top achievements
Rank 1
Kwame Johnson asked on 15 Sep 2010, 04:32 PM
Hey There-

I'm relatively new to Silverlight and I'm having an issue implementing cell selection that I haven't seen posted anywhere - apologies if I'm posting this in the wrong place or it's a stupid question. Selecting multiple cells to be copied works great provided that none of the cells is in edit mode. However, let's say the user clicks on a cell and then shift + another cell. A block of cells is now selected, but if that second cell that was clicked is editable for the user, it's content is now highlighted as well. Subsequently, when the user clicks ctrl-c and tries to paste from the clipboard into another application (Excel), only the contents of the most recently clicked cell are copied over. Is there some easy way to make sure ALL cells are copied regardless of whether or not the most recently clicked cell is in edit mode?

Thanks!
Kwame

4 Answers, 1 is accepted

Sort by
0
Kwame Johnson
Top achievements
Rank 1
answered on 16 Sep 2010, 10:49 PM
It also appears that the default behavior is that ctrl/shift copy the content of cells in hidden columns?
0
Milan
Telerik team
answered on 17 Sep 2010, 08:49 AM
Hello Kwame Johnson,

I am afraid that it is not possible to copy the contents of all selected cells when the grid is in edit mode since the editor will handle most of the key strokes. For example, if you have a cell in edit mode and you hit the "c" key the grid would not receive a KeyDown event since the TextBox editor will handle this event. 

In regard to your second question, in its current version the grid will copy the content of all columns that appear in the Columns collection. I see that this might be a problem in many scenarios and we will try to provide means to alter this behavior.


Regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kwame Johnson
Top achievements
Rank 1
answered on 17 Sep 2010, 09:07 PM
Ok I gotcha.

As far as the ability to change the behavior so hidden columns are ignored, what do you think would be the timeframe for that addition? I realize there's no way you could have a solid grasp on that since the question was just posed yesterday...I'm more looking for an approximation so I can determine how much energy we should devote to coming up with a workaround ourselves.

-K
0
Yavor Georgiev
Telerik team
answered on 21 Sep 2010, 12:19 PM
Hello Kwame Johnson,

 The GridView will now no longer copy hidden columns. You will be able to find this updated functionality in the next Internal Build, and in our Service Pack, which is due sometime next week.

Greetings,
Yavor Georgiev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Kwame Johnson
Top achievements
Rank 1
Answers by
Kwame Johnson
Top achievements
Rank 1
Milan
Telerik team
Yavor Georgiev
Telerik team
Share this question
or