anelezeravla
Posts: 0
Joined: Tue Oct 01, 2013 12:00 pm

Using grid component to display REST service response horizontally

Hello,
I would like to know if there is a way to use a grid to display results from a service horizontally instead of vertically.

I will explain: I have a REST service that returns a list of elements. In order to display those elements on the screen, I would normally use a 1x1 grid with a label inside, so the list returned would be mapped to grid, and the elements inside would be mapped to the label. This displays all the elements on the list vertically. I would like this same behaviour, but displaying them horizontally instead.

Any hints? Thank you very much,
Elena

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Using grid component to display REST service response horizontally

Hi Elena,

You can use CSS to make your Grid an inline element.

anelezeravla
Posts: 0
Joined: Tue Oct 01, 2013 12:00 pm

Using grid component to display REST service response horizontally

Any hints on how to perform that? What CSS attributes should be modified and on which elements of the grid?

Thank you so much

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Using grid component to display REST service response horizontally

Hi Elena,

Please use this CSS code:pre.myclass{
width: 30px;
float: left;
}/preWhere 'myclass' is a name of class you add via Properties panel,
30px is an element width.

John6122514
Posts: 0
Joined: Wed Aug 07, 2013 7:10 pm

Using grid component to display REST service response horizontally

I tried this suggestion. But the grid still show vertically.

John6122514
Posts: 0
Joined: Wed Aug 07, 2013 7:10 pm

Using grid component to display REST service response horizontally

I was doing something wrong. It works now.

Return to “Issues”