Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1005
confirmation in UltraWebGrid
posted

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

Parents
No Data
Reply
  • 20
    posted

    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.

    function deleteTradeRow( gridName, cellId )

    {

     

    if( !confirm("Are you sure you want to delete the row?") )

    igtbl_cancelPostBack(gridName);

    }

    <ClientSideEvents BeforeRowDeletedHandler="deleteTradeRow" BeforeRowTemplateOpenHandler="tradeGrid_Be

Children