open context menu through server side

2 posts, 0 answers
  1. Piyush Vardhan
    Piyush Vardhan avatar
    8 posts
    Member since:
    May 2008

    Posted 23 May 2008 Link to this post

    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

  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 23 May 2008 Link to this post

    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
Back to Top