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

Selecting a single line issues

0 Answers 50 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
dani
Top achievements
Rank 1
dani asked on 03 Feb 2013, 05:32 AM
Hi,
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 ?

No answers yet. Maybe you can help?

Tags
GanttView
Asked by
dani
Top achievements
Rank 1
Share this question
or