Note that there are some explanatory texts on larger screens.

plurals
  1. PObutton in dataview not firing after callback
    primarykey
    data
    text
    <p>I have an aspxdataview with images and buttons on it: </p> <pre><code> &lt;dx:ASPxDataView ID="ASPxDataView1" runat="server" ClientInstanceName="dataview" DataSourceID="XmlDataSource1" SettingsTableLayout-RowsPerPage="2" Width="850px" PagerAlign="Justify" ItemSpacing="25px" OnCustomCallback="ASPxDataView1_CustomCallback" &gt; &lt;ItemTemplate&gt; &lt;table style="margin: 0 auto;"&gt; &lt;tr&gt; &lt;td colspan="2"&gt; &lt;dx:ASPxImage ID="imgCover" runat="server" ImageUrl='&lt;%# Eval("PhotoUrl") %&gt;' Width="200px" Height="200px" ShowLoadingImage="true" /&gt; &lt;asp:Button ID="btnDelete" Text="X" runat="server" BackColor="Red" OnClientClick="return confirmPost()" OnClick="btnDelete_Click" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;asp:TextBox ID="tbxName" runat="server" Text='&lt;%# Bind("Name") %&gt;' Width="125px" /&gt; &lt;asp:Button ID="btnRename" runat="server" Text="átnevez" OnClick="btnRename_Click" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/ItemTemplate&gt; </code></pre> <p>When I upload an image the uploadcontrol calls a callback..</p> <pre><code> &lt;dx:ASPxUploadControl ID="ASPxUploadControl1" runat="server" UploadMode="Standard" Width="280px" (...) &lt;ClientSideEvents FileUploadComplete="function(s, e) { dataview.PerformCallback('added'); }" /&gt; </code></pre> <p>..the handler then invokes databind on the dataview:</p> <pre><code> protected void ASPxDataView1_CustomCallback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) {ASPxDataView1.DataBind();} </code></pre> <p>The problem is that although the new item with the image appears, the delete button <strong>in it</strong> doesn't fire the click event (but some of the data items still disappear from the page when i click it), only after reloading the page. I'm getting very frustrated so I set a bounty on the issue.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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