asp.net - Rowcommand does not trigger with update panel with datagridview -


I try to use an updated panel with my datagrid video on line command event to show a dialog box . When I remove the update panel it works fine, but does not work with it.

I used the following panel with the update panel, but it does not work.

  & lt; Asp: UpdatePanel ID = "Update Pannaldgaon" runat = "server" updatemode = "conditional" children's estridge = "incorrect" & gt; & Lt; Trigger & gt; & Lt; Asp: AsyncPostBackTrigger ControlID = "dgvVehiclesType" EventName = "Roam Common" / & gt; & Lt; / Trigger & gt; & Lt; ContentTemplate & gt; & Lt; Div class = "tab-content" & gt; & Lt; Div class = "tab-pen fade in active" & gt; & Lt; Asp: gridview id = "dgvVehiclesType" runat = "server" gridlines = "none" onrev commm = "DGVVell type row-comand" PageSize = "10" & gt; & Lt; Columns & gt; & Lt; ASP: BoundfieldDIFF field = "OptionID" headerText = "# ID" readonly = "True" /> & Lt; ASP: Boundfield datedfield = "option" name "headertext =" name "reedonly =" true "/> type asp: buttonField button =" image "commandName =" cmdEdit "ImageUrl =" ~ / img / view " .png "/> & lt; / column & gt; & lt; / ASP: GridView & gt; & lt; / div & gt; & lt; / div & gt; & lt; / contentTemplate & gt; Lt; / ASP: UpdatePanel & gt;  

RoW command back and event

  switch (e.comcommunication) {case "cmdEdit": // show Forms ClientScript.Register Startup Script (GetType (), "" "," Script "and" $ formModal "Show Modal ('Toggle');  

any suggestions? Or reference

I do not see any & lt; asp: button / & gt; RowCommand method in your grid view occurs when a button is clicked in the gridview control

Besides, you do not have to use the trigger for it, you can delete these lines.

Can we see the code-behind your RowCommand method? It should look like this:

  Public Zero dgvVehiclesType_RowCommand (Object Sender, EventArgs E) {// Something}  

Hope this helps.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -