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

Access Radgrids column in context menu ItemClick Event handler

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neelima
Top achievements
Rank 1
Neelima asked on 15 Oct 2010, 04:45 PM

I'm displaying a context menu when right-clicking a radgrid. How do I access radgrids columns?

Thanks for the help!

  Protected Sub RadContextMenu1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles RadContextMenu1.ItemClick
  
        Dim radGridClickedRowIndex As Integer = Convert.ToInt32(Request.Form("radGridClickedRowIndex"))
        Dim radGridClickedRow As GridDataItem = CType(RadGrid1.Items(radGridClickedRowIndex), GridDataItem)
'How do I access radGridClickedRow column here? 
        mpuDuplicateTrip.Show() ' show ModalPopup
  
    End Sub

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Oct 2010, 08:13 AM
Hi Neelima,

The best option in this case is to subscribe to the ItemCommand server side event handler. This would give you a chance to track each operation, and get additional information on it via the command arguments.
I hope this gets you started properly.

Kind regards,
Pavlina
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
Tags
Grid
Asked by
Neelima
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or