I have recently implemented a click event for the rows in a devexpress gridview on the server-side using VB.net.
Protected Sub gvSubNotes_HtmlRowPrepared(sender As Object, e As ASPxGridViewTableRowEventArgs)
e.Row.Attributes.Add("onclick", String.Format("OnEntryClick('{0}', '{1}', '{2}', '{3}');", e.GetValue("ID"), e.GetValue("SYNOPSIS"), e.GetValue("ENTRY"), e.GetValue("ENTERED_BY")))
End Sub
However, I encountered an error on the client side when attempting to click. The source in Chrome DevTools displayed:
<tr id="gvSubNotes_DXDataRow0" class="dxgvDataRow" onclick="OnEntryClick('1375', 'Forager', 'UPDATED on 9/12/2023 8:39:07 AM: UPDATED on 9/12/2023 8:36:32 AM: Trying to scrape up a sub for lunch.&nbsp; &nbsp;i mean for subs.&nbsp; yeah that's it.', 'DJANGO');" onmouseover="OnEntryMouseOver(this);" onmouseout="OnEntryMouseOut(this);" style="background-color:White;">
<td class="dxgv" style="color:Black;background-color:Beige;">9/11/2023</td> <!--ERROR HERE -->
<td class="dxgv dx-ellipsis" style="color:Black;">Forager</td>
<td class="dxgvPHEC dxgv" style="color:Black;background-color:Beige;">DJANGO</td>
<td class="dxgvHEC"></td>
</tr>
The issue was identified as "Uncaught SyntaxError: missing ) after argument list" at the first td field of the row.
This is my first encounter with this problem despite having implemented similar functions in the past. I would appreciate some assistance in spotting where I may have gone wrong. Thank you for any help provided.