Selecting a single line issues

1 posts, 0 answers
  1. dani
    dani avatar
    48 posts
    Member since:
    Jan 2011

    Posted 02 Feb 2013 Link to this post

    I want to create this behavior:

    I want to be able to select only full lines, act on double click on the line -

    currently I have 2 problems with this code:

    <telerik:RadGridView Name="gdTestRecords" DockPanel.Dock="Bottom" AutoGenerateColumns="False" ClipboardCopyMode ="All" MouseDoubleClick="gdTestRecords_MouseDoubleClick" SelectionMode="Extended" SelectionUnit="FullRow" MaxHeight="600" ScrollViewer.VerticalScrollBarVisibility="Visible">

    1, when I double click inside the line - it selects the cell and not the line - I can only choose the line by clicking on the edge of the line.
        this code will return null: RecordType st = ((FrameworkElement)e.OriginalSource).DataContext as RecordType (unless I click on the edge)
    2. when I click on the vertical scroll bar more than 2 times - it acts like selecting a cell ! - I need to interpreting clicking on scroll bar as clicking on the grid surface....

    How can I fix this ?
Back to Top