Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Fetch the Values of Cell from i5Grid using cellSelectionEvent ?

I'm trying to fetch the value of the cell on selection using cellSelectionEvent of i5Grid. I have registered my event handler for the cellSelection event and the event handler gets executed whenever any cell in the i5Grid is selected. But i don't find any methods that would fetch me the value of the selected cell in the i5Grid.

As per UI5 conventions, we usually pass an parameter  say oEvent to the event handler which would contain the value of the selected cell, but it seems that's not the case with MII i5Grid as the parameter oEvent returns undefined. So what is the way out here to fetch the value of the selected cell ?

i5Grid.registerCellSelectionEvent(function(oEvent){

     alert("cell selection event");

     console.log(oEvent); // undefined;

});

- Sakthivel

Tags:
Not what you were looking for? View more on this topic or Ask a question