// This is to place the newly added row in edit mode function EditAfterNew(grdId) { // Cause the new row to be placed in Edit mode with Template var oGrid = igtbl_getGridById(gridId); var lastRow = oGrid.rows.getRow(oGrid.Rows.length - 1); lastRow.Activate(); // Edit the row oGrid.BeginEditTemplate(); }It is called by this.
// Inject the script in the page to call EditAfterNew Type csType = this.GetType(); string csName = "TruckEditorScript"; // Get the ClientScriptManager reference from Page ClientScriptManager csm = Page.ClientScript; // Check if script is registered if (!csm.IsStartupScriptRegistered(csType, csName)) { string csScript = string.Format("EditAfterNew('{0}');", this.grdTrucks.ClientID); Page.ClientScript.RegisterClientScriptBlock(csType, csName, csScript, true); }Is there any way to get a reference and pass that parameter? Or alternatively is there a way to obtain it within the function without it being passed in?