cancel
Showing results for 
Search instead for 
Did you mean: 

Populate grid table SAPUI5 dynamically

benlim
Contributor
0 Kudos

Hi Expert,

I would like to implement development in SAPUI5 whereby user able to enter number of column and grid to be generated. The grid should triggered an event to pop up message whereby which column and row is clicked.

http://jsfiddle.net/6qkdP/2/

May I know which control available in SAPUI5 able to achieve this objective.

I've tried 'sap.ui.table' but was getting error "method "addRow" cannot be used programmatically!" while generating the grid.

How should I design XML view as the view will be generated dynamically?

Any help would be much appreciated.

Thanks.

Regards,

-Ben-

View Entire Topic
benlim
Contributor

Hi All,

I managed to populate the grid dynamically.

Below are my xml view and controller.

Thanks to arjun_9 and joseph.berthe for your guide.