I have a radlistview setup for viewtype=DetailsView. The HOME/END keys work, but the Page up/down only move the scroll area, not the selected item.
You will notice when running the below code, page up/down will always keep the selected item as FIELD 0 (the top one), but END moves the select to the last entry, and HOME moves the select to the first entry.
How can i get the page up/down to move the selected item. I am probably just missing something really simple that i can't seem to find.
ListViewDetailColumn1.HeaderText = "Column 0"
ListViewDetailColumn1.Width = 100.0!
ListViewDetailColumn2.HeaderText = "Column 1"
ListViewDetailColumn2.Width = 100.0!
Me.RadListView1.Columns.AddRange(New Telerik.WinControls.UI.ListViewDetailColumn() {ListViewDetailColumn1, ListViewDetailColumn2})
Me.RadListView1.ItemSpacing = -1
Me.RadListView1.KeyboardSearchEnabled = True
Me.RadListView1.Location = New System.Drawing.Point(200, 72)
Me.RadListView1.Name = "RadListView1"
Me.RadListView1.Size = New System.Drawing.Size(296, 208)
Me.RadListView1.TabIndex = 2
Me.RadListView1.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView
MsgBox("DoubleClick" & vbCrLf & RadListView1.SelectedItem(0).ToString)
End Sub
Private Sub RadListView1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RadListView1.KeyPress
If e.KeyChar = ChrW(13) Then
MsgBox("KeyPress" & vbCrLf & RadListView1.SelectedItem(0).ToString)
End If
End Sub
Private Sub LoadList()
Dim lItem As Telerik.WinControls.UI.ListViewDataItem
Dim cnt As Integer
Dim selected As Boolean = False
For cnt = 0 To 100 Step 1
lItem = New Telerik.WinControls.UI.ListViewDataItem
lItem.SubItems.Add(CStr(cnt))
lItem.SubItems.Add("FIELD " & CStr(cnt))
RadListView1.Items.Add(lItem)
If Not selected Then
RadListView1.SelectLastAddedItem = False
selected = True
End If
Next
End Sub