Hi Dimitar, thanks for replying.
I’m sorry, the description of my escenary was really poor.
Working with mvc5, I have a bill that have ‘n’ payments.
For each payment should be a grid that will contain the payment details. I don’t know how many payments will be there.
So having a list of the payment’s Ids in my @Model I should go and look for the detail of 1 payment and then create a grid with its details.
I know I can do something like this to create a div:
var myDiv = document.createElement('div');
myDiv.id = ‘jqxgrid’;
`document.getElementsByTagName(‘body’)[0].appendChild(myDiv);
but my confussion starts when I need to get the data for each grid. I’m stuck in there 