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
180
getting selected row index on clicking anywhere on the row
posted

Hi,

I am new to infragistics.  I am using wegrid to display my data on the page. I have a requirement to fire an event on clicking anywhere on a row. I need to display the row data on a different panel on the page. I can work with a client side event (javascript as I have all the data on the page itself) or a server side even. Please help ....

Parents
  • 235
    posted

    You can do it client side .

    If your row is editable you can use

    function BeforeEnterEditMode(tableName, cellName)

    {

    alert("selected row index " +igtbl_getRowById(cellName).getIndex());

    }

    if your row is non editable u can use the following client side event

     

    function CellClick(gridName,cellName,button)

    {

    alert("selected row index " +igtbl_getRowById(cellName).getIndex());

    }

     set ur client side events accordingly for ex:-

    <ClientSideEvents CellClickHandler="CellClick"/>

     

     

Reply Children