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
100
Using Checkbox in the WebGrid
posted

I dynamicaly add a column to my grid and want to add a checkbox column.  I want this column to be able to have the user check all the items in the grid that they want removed and with one button (REMOVE) somewhere else on the page, I want to go through the items in the grid, see if they are checked and remove those items from the database.

 The problem is that I also use the selected event for the grid to redirect to another page for editing that information.

 So, when I click on the checkbox to check it, it gets checked but fires off the selected event and then redirects me.  Is there a way to turn off the Row Select Event for just that column?

Thanks,

Cory

 

Parents
No Data
Reply
  • 280
    posted

    you can supress the event by using  

    function
    uwgLoanAppList_CellClickHandler(gridName, cellId, button)

    {

    var grid = igtbl_getGridById(gridName);

    var col = igtbl_getCellById(cellId).Column;

    var colCaption= col.HeaderText;if(colCaption == "ColumnKey")

    {

    return 1;

    }

    }

Children
No Data