Problem with cell selection

5 posts, 0 answers
  1. Kwame Johnson
    Kwame Johnson avatar
    27 posts
    Member since:
    May 2010

    Posted 15 Sep 2010 Link to this post

    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
  2. Kwame Johnson
    Kwame Johnson avatar
    27 posts
    Member since:
    May 2010

    Posted 16 Sep 2010 Link to this post

    It also appears that the default behavior is that ctrl/shift copy the content of cells in hidden columns?
  3. DevCraft banner
  4. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 17 Sep 2010 Link to this post

    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
  5. Kwame Johnson
    Kwame Johnson avatar
    27 posts
    Member since:
    May 2010

    Posted 17 Sep 2010 Link to this post

    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
  6. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 21 Sep 2010 Link to this post

    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
Back to Top
DevCraft banner