Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7988043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:19:18+00:00 2026-06-04T12:19:18+00:00

So I have created a context box upon right click that has Add/Edit/Delete Rows.

  • 0

So I have created a context box upon right click that has Add/Edit/Delete Rows. I also have a bunch of code launched before the Dialog is shown. My problem is that when I use the context menu it doesn’t go through some of the code. I have tried to call on the functions directly but it doesn’t format correctly.

I am mainly concerned with the edit button, here is the code I am using to bring up the edit Dialog

 function editRow() {
     var grid = jQuery("#<%= Jqgrid1.ClientID %>");
     var rowKey = grid.getGridParam("selrow");
     if (rowKey) {
         // I have tried calling functions here and it still doesn't work
         grid.editGridRow(rowKey, grid.editDialogOptions);
     }
     else {
         alert("No rows are selected");
     }
 }

So if I use this to display the editform it isn’t formatted correctly nor does it go through the functions all correctly.

I am using the ASP Webforms version of Jqgrid so I call the function by doing this

<cc1:JQGrid1 ID="Jqgrid1
 //other attributes

ClientSideEvents-BeforeEditDialogShown="ChangeMonitor" 

 //Rest of code />

So this works just fine, and I’m trying to get the Edit button on the context menu to display correctly.

My thought was to use Jquery to trigger a click on the actual Edit button once someone used the context menu. I couldn’t find an ID that would work however.

Is there an easy way to connect my context menu Edit button, with the actual Edit button in the toolbar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:19:20+00:00Added an answer on June 4, 2026 at 12:19 pm

    Well I found a solution to my problem.

    The id field of the button was edit_ct100_cpMainContent_Jqgrid1_top so I just triggered a click with this code.

    $("td[id^=edit][id$=top]").trigger("click")
    

    For some reason when I used the _ct100_cpMainContent_Jqgrid1 it wasn’t working, but now it does. Hope this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a LINQ TO SQL Context that I have created that calls a
I'm trying to add a new entry into Internet Explorer's right-click context menu. I
I have a button that is programatically created, it's content is a stack panel
Some context here...I have a System.Windows.Window that is used to display a modal message
I have created a layout in a dialog box, and need it to be
I have created a highlight feature that will highlight anything contained in a <p>
I am trying to create this dropdown box that slides down and has the
Hi i have created a custom converter in jsf for combo box using h:selectOneMenu,
I have created app using jQuery Mobile and need to get a Dialog box
I have a simple ASP.Net MVC View which contains an FCKeditor text box (created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.