Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to call the same function that the ToolBar editbutton does
    primarykey
    data
    text
    <p>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. </p> <p>I am mainly concerned with the edit button, here is the code I am using to bring up the edit Dialog</p> <pre><code> function editRow() { var grid = jQuery("#&lt;%= Jqgrid1.ClientID %&gt;"); 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"); } } </code></pre> <p>So if I use this to display the editform it isn't formatted correctly nor does it go through the functions all correctly.</p> <p>I am using the ASP Webforms version of Jqgrid so I call the function by doing this</p> <pre><code>&lt;cc1:JQGrid1 ID="Jqgrid1 //other attributes ClientSideEvents-BeforeEditDialogShown="ChangeMonitor" //Rest of code /&gt; </code></pre> <p>So this works just fine, and I'm trying to get the Edit button on the context menu to display correctly.</p> <p>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. </p> <p>Is there an easy way to connect my context menu Edit button, with the actual Edit button in the toolbar?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload