Data Viewer Grid size restrictions

In my app, I’m using a data viewer grid to display data. But these rows are limited to only two blocks per row. It looks very uneven and is also a waste of space. I want to display my data in a grid like the way apps are displayed on a phone, with around four items per row.

Is there any way I can break these size restrictions and display my data?

Thanks

1 Like

You may build your own custom grid and use the component’s size you want.

1 Like

I forgot to mention that this is a custom DVL.

1 Like

You shocked me by your answer so I had to test it before replying.

The data is not nicely presentable but I have more than just two columns in the same row of the grid.

@muneer
image
That’s how mine has turned out.
This is what I created for my custom DVL:
image
The column is enlarged when I added it as the layout in my DVL. This is the look of the DVL:
image
Any idea what to do? I can privately send you the project link if needed.

1 Like

I got what you mean. I tricked Thunkable by placing TWO images side by side (in the custom layout) and this way I forced Thunkable to repeat them on the screen and it looks like you have 4 icons in a row.

If this can be a solution to what you have now then you need to modify the structure of your table to fit this customization.

1 Like

So basically I should put two images in my DVL?

1 Like

You need to have a row and place TWO columns in it and in each column you will have an image and a label under it.

It worked for me

image
I just did that and the clock and calendar are overlapping

1 Like

Which means you need to adjust the borders / padding of your components. That’s what I presume.

1 Like

Trying that right now

I am unable to save the updated row as a DVL. I tried duplicating it and then saving it, but it isn’t working.

1 Like

Can you go to main Thunkable page and delete saved layout for this particular one from the Saved Custom Layout List. Just a suggestion because I could not think of anything else.

1 Like

Thanks. I hard refreshed the page, and it worked. How does this look?
image
Is it too crowded?

1 Like

I must say you are a persistent person and persistence pays off.

This is just beautifying and decoration. You might check reducing the image size

2 Likes

Thanks for the tip. Will reduce the image size.
Also, there’s another problem. I want to navigate to a page(specified in my data table) when any image is clicked. But since there are two image in one DVL that are meant to be separate, both images are clicked at once. Do you know of any workarounds?

1 Like

One thing I like about Thunkable is the availability of a workaround

In the data viewer grid, you can drill down to each component. The image here is for a list but the same applies here. I do not have the exact answer but I know with your level of persistency you will find a way.

So how do I know whether the user clicked image1 or image2?

1 Like

One thing that comes in mind is the Any image

image

Sorry, the wrong photo but I think you got what I mean.

1 Like

Thank you so much for your help! I managed to do this:

I initially tried to find a when column1 click block, but I didn’t find any, so went with image. The only thing is that the user will go to the wrong pageif he/she is slightly off-center.

1 Like