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
345
How to handle cell click events and getdata from cell
posted

Hi ,

I want a simple example to handle the cell clickevent in webgrid and get the data from that cell to display in a window.I am using visual studio2005 and Infragistics 8.2 version.Can any one please send me the solution.Any kind of suggestion is appreciated.Thanks in advance.

 

  • 1763
    posted

    You can handle this client side, by first setting the handler for the grid's ClientSideEvent and then adding a javascript function in your page. If there's something you want to do server side I recommend you to use the client side handler to call your server method, since the Click handler for the grid will handle any click no matter if it's a cell, header, footer, row selector, etc.

    1. grid.DisplayLayout.ClientSideEvents.CellClickHandler = "GridCellClickHandler"; 

    2. function GridCellClickHandler(gridName, cellId, button){

    var cell=igtbl_getCellById(cellId);

    var value = cell.getValue();

    }