Hi,
I have an UltraWebGrid with a column "Delete", column type = Infragistics.WebUI.UltraWebGrid.ColumnType.Button. When the user clicks in the button, I delete the row (from DB, so it is server side). I want to add a confirmation message to ask to the user for confirmation before deleting the row. I want to do it in the client-side. I tried using AJAX but I didn't find the way to use it in UltraWebGrid. Also, I tried using the DisplayLayout.ClientSideEvents.CellClickHandler and others properties but I couldn't solve my problem.
(Note: I have the UltraWebGrid inside a WebAsyncRefreshPanel)
Thanks
Regards,Fernando
Tony
Instead of using a button to delete a row in UltraWebGrid, I am using delete Key, which works very nice and neat for me. However, when I try to implement confirmation for the deletion, it just does not do it. I see popups but no matter cancel/ok it does all the delete.
{
igtbl_cancelPostBack(gridName);
}
<ClientSideEvents BeforeRowDeletedHandler="deleteTradeRow" BeforeRowTemplateOpenHandler="tradeGrid_Be
The grid won't necessarily cause a postback for this event. What you really want to do is cancel the event from occuring, by returning "true" from your function. Your code should look something like
return !(confirm("Are you sure"));