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
190
Determine the clicked cell index
posted

Hello. How can I determine the WebDataGrid cell index which was clicked?As I understand, it can be done by handling the events like CellSelectionChanged. But when I'm adding the CellSelectionChanged client event, it's not even fired.

Grid has CellClickAction="Row" RowSelectType="Single" selection behavior parameters.

  • 6748
    Suggested Answer
    posted

    Hi,

     

    Let me know if you have further questions with this issue.

     

    Regards,

    Lyuba

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

     

     

  • 6748
    Suggested Answer
    posted

    Hello Hans,

     

    The reason that the CellSelectionChanged event doesn’t fire in your scenario is that you have set CellCLickAction=”Row”. With this configuration, you don’t have selected cell, but you have selected row and the event RowSelectionChanged will fire. If you want to keep this configuration and still to be able to take the particular cell on which the user has clicked, in order to select the row, you should enable the activation behavior and subscribe for the ActiveCellChanged event. There you will have access to the cell like this:

    eventArgs.getActiveCell()

    Hope this helps.

     

    Regards,

    Lyuba

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support