I've got a basic context menu working on a RadGrid, but I want to include a 3rd context menu (with the arrow character >) that nestes and has a bunch of other menu items on its own menu panel. Would that need to be a combo box item?
What I have working so far is this (pretty basic context menu):
What I have working so far is this (pretty basic context menu):
Dim
contextMenu_Active
As
New
RadContextMenu
Dim
menuItem1 =
New
RadMenuItem(
"Stop"
)
menuItem1.ForeColor = Color.Red
AddHandler
menuItem1.Click,
AddressOf
menuItem1_Click
Dim
menuItem2
As
New
RadMenuItem(
"Remove"
)
AddHandler
menuItem2.Click,
AddressOf
menuItem2_Click
contextMenu_Active.Items.Add(menuItem1)
contextMenu_Active.Items.Add(menuItem2)
Private
Sub
RadGridView_Active_ContextMenuOpening(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.WinControls.UI.ContextMenuOpeningEventArgs)
Handles
RadGridView_Active.ContextMenuOpening
If
TypeOf
Me
.RadGridView_Active.CurrentRow
Is
GridViewDataRowInfo
Then
e.ContextMenu = contextMenu_Active.DropDown
End
If
End
Sub
Private
Sub
menuItem1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Dim
index
As
Integer
=
Me
.RadGridView_Active.Rows.IndexOf(TryCast(
Me
.RadGridView_Active.CurrentRow, GridViewDataRowInfo))
If
index >= 0
Then
Dim
strGUID =
Me
.RadGridView_Active.Rows(index).Cells(0).Value
Try
ccJob.JobStop(strGUID)
Catch
ex
As
Exception
End
Try
End
If
End
Sub
Private
Sub
menuItem2_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
'TODO
End
Sub