I've got a request to put output grid cell data in a horizontal format. The basis logic is taking multiple database rows and placing in the grid cell vertically and not concatenated horizontally. I have tried combo boxes, wrapping text and HTML container. The line feed character (EBCDIC x'25') helps with breaking up the data, but the extra entries get cutoff at the bottom of the cell size. This has an known amount of data to display and I need to determine a way to scroll down. I don't want to expand the grid row height.
I may be just overlooking the correct widget and/or properties.
Thanks in advance!
Horizontal Entries In Grid cells
-
- Profound User
- Posts: 61
- Joined: Tue Jun 28, 2016 12:53 pm
- First Name: James
- Last Name: Sherwood
- Company Name: Brunswick Boat Group
- City: Knoxville
- State / Province: Tennessee
- Contact:
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Horizontal Entries In Grid cells
Would a TextArea widget work for you? You can set its "read only" property to true and set the "overflow y" property to true or auto. Then the text would break at the line feed, and the user could scroll to see more. The user would not be able to edit it.
You can also remove its white background and its borders by setting its "inline style" property to this:
You can also remove its white background and its borders by setting its "inline style" property to this:
Code: Select all
background: none;
border: none;
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Horizontal Entries In Grid cells
I should add what Scott K here said: that since your data is output-only, you can use an HTML Container instead of a TextArea widget, which is meant for input.
You'd set the "overflow y" property to make scroll bars appear on the HTML Container. You'd also set the "inline style" to "white-space: pre-wrap;", so that the text wraps at the line feed characters.
You'd set the "overflow y" property to make scroll bars appear on the HTML Container. You'd also set the "inline style" to "white-space: pre-wrap;", so that the text wraps at the line feed characters.
-
- Profound User
- Posts: 61
- Joined: Tue Jun 28, 2016 12:53 pm
- First Name: James
- Last Name: Sherwood
- Company Name: Brunswick Boat Group
- City: Knoxville
- State / Province: Tennessee
- Contact:
Re: Horizontal Entries In Grid cells
Thanks for the replies. I also reached out to Profound support and they gave me very similar suggestions. I'm currently using a text area widget with the following properties.
I have two lines of output separated with the x'25'. In my initial post I said horizontal scroll bar, I meant vertical, thus the overflow y property. I am still not getting the scroll bar. I've tried 'visible', 'auto' and 'scroll' and don't get the scroll bar.
Any other ideas? In the meantime I'm going to try your html container with the properties suggested.
I have two lines of output separated with the x'25'. In my initial post I said horizontal scroll bar, I meant vertical, thus the overflow y property. I am still not getting the scroll bar. I've tried 'visible', 'auto' and 'scroll' and don't get the scroll bar.
Any other ideas? In the meantime I'm going to try your html container with the properties suggested.
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Horizontal Entries In Grid cells
I looked up your ticket with Profound Logic Tech Support. It's in the "Waiting for Customer" status. You might let them know that you're still having problems. They should have some suggestions you can try.
-
- Profound User
- Posts: 61
- Joined: Tue Jun 28, 2016 12:53 pm
- First Name: James
- Last Name: Sherwood
- Company Name: Brunswick Boat Group
- City: Knoxville
- State / Province: Tennessee
- Contact:
Re: Horizontal Entries In Grid cells
Matt,
I switched to the html container and added the suggest properties. I was still not seeing the scroll bars. It hit me to try to make the grid row height larger. It was then the scroll bars appeared. I assume now there is a minimal height for a widget using the scroll bar?
Anyway, I have It working as expected now. I'll update my ticket with support. Thanks for your help!
I switched to the html container and added the suggest properties. I was still not seeing the scroll bars. It hit me to try to make the grid row height larger. It was then the scroll bars appeared. I assume now there is a minimal height for a widget using the scroll bar?
Anyway, I have It working as expected now. I'll update my ticket with support. Thanks for your help!
-
- Experienced User
- Posts: 116
- Joined: Wed Sep 05, 2012 11:14 am
- First Name: Eric
- Last Name: Hill
- Company Name: Integrated Corporate Solutions
- Phone: 256-760-8239
- Address 1: 501 S Wood Avenue
- City: Florence
- State / Province: Alabama
- Zip / Postal Code: 35630
- Country: United States
- Contact:
Re: Horizontal Entries In Grid cells
If you change the "overflow y" property to "scroll" the scroll bars will always appear no matter what the size. You may already know this but thought I would pass it along anyway... :-)
-
- Profound User
- Posts: 61
- Joined: Tue Jun 28, 2016 12:53 pm
- First Name: James
- Last Name: Sherwood
- Company Name: Brunswick Boat Group
- City: Knoxville
- State / Province: Tennessee
- Contact:
Re: Horizontal Entries In Grid cells
I tried to you 'scroll' and it didn't show. Either way, user happy with the look and functionality, so that's all that matters. :)emhill wrote:If you change the "overflow y" property to "scroll" the scroll bars will always appear no matter what the size. You may already know this but thought I would pass it along anyway... :-)
I'll look at it again if I get a new requirement for the same feature.
Who is online
Users browsing this forum: No registered users and 4 guests