araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

binding array to grid from REST

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

binding array to grid from REST

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.

araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

binding array to grid from REST

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

binding array to grid from REST

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

Return to “Issues”