Page 1 of 1

binding array to grid from REST

Posted: Fri Feb 28, 2014 8:03 pm
by araskin3i

I am calling a REST service and binding a resulting array to a Grid component. When I was looking at the HTML I noticed that Appery is creating a new table element for every row in the array which is not what I expected. I expected there would be a for reach record in the array in the same table. Have i done the binding incorrectly or is this how it is supposed to work.

Image


binding array to grid from REST

Posted: Fri Feb 28, 2014 9:10 pm
by Nikita

Hello!
Appery always multiplies components, which were mapped. If you want to get records in one table, you should make it manually... for example with method append.


binding array to grid from REST

Posted: Fri Feb 28, 2014 9:10 pm
by araskin3i

Hi Nikita. Can you tell me more about this method? Do you have an example I could see?


binding array to grid from REST

Posted: Fri Feb 28, 2014 10:07 pm
by Nikita

I think that this doc will help:
https://api.jquery.com/append/