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

open context menu through server side

1 Answer 99 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Piyush Vardhan
Top achievements
Rank 1
Piyush Vardhan asked on 23 May 2008, 06:00 AM
hi friends

i want to open Context Menu on row click of grid so i wright the code in server side but i did not gated the property or method of open context menu  by server side code. i am sending code with this mail so please help me to open Context menu.


Code:-

 Protected Sub uxrgridDetails_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles uxrgridDetails.ItemCommand
        Try
            Dim commandItem As Telerik.WebControls.GridDataItem = CType(e.Item, Telerik.WebControls.GridDataItem)
            Dim PhoneNo As String = CType(commandItem.FindControl("uxlbtnPhone1"), LinkButton).Text
            Dim PhoneNo1 As String = CType(commandItem.FindControl("uxlbtnPhone2"), LinkButton).Text
            Dim PhoneNo2 As String = CType(commandItem.FindControl("uxlbtnPhone3"), LinkButton).Text
            uxrcMenu.Items(0).Text = PhoneNo
            uxrcMenu.Items(1).Text = PhoneNo1
            uxrcMenu.Items(2).Text = PhoneNo2
            Dim NewItem As New Telerik.WebControls.RadMenu
            '''HERE I WANT TO OPEN CONTEXT MENU



        Catch ex As Exception

        End Try
    End Sub

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 23 May 2008, 10:34 AM
Hi Piyush,

It would be better to show the context menu on the client opposed to a server-side call. Please, check the AJAX-enabled context menu example. You should use the OnRowClick client-side event.

I hope this helps.

Regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
Piyush Vardhan
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or