You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by wkoch <wa...@boeing.com> on 2020/12/29 22:18:00 UTC

Datagrid - wordwrap a column

In the FLEX datagrid there was a word wrap property than would automatically
increase the height of a single row and "wrap" the contents if the column
width limit is exceeded.

I can't find this option anywhere.  Has this functionality been moved to a
bead?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: [EXTERNAL] Re: Datagrid - wordwrap a column

Posted by Carlos Rovira <ca...@apache.org>.
Hi Warren,

to add scroll to the j:View you just need to add the bead:

<j:ScrollingViewport/>

That will allow you to scroll if the content is out the screen




El mié, 30 dic 2020 a las 21:18, Koch (US), Warren R (<
warren.r.koch@boeing.com>) escribió:

> View
>
>
>
> <j:initialView>
>
> <j:View>
>
> <j:Group  x="10" y="5" width="1140">
>
>
>
> I put everything in the Group.  Seems to work better that way
>
>
>
> *From:* Carlos Rovira [mailto:carlosrovira@apache.org]
> *Sent:* Wednesday, December 30, 2020 1:59 PM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] Re: Datagrid - wordwrap a column
>
>
>
> EXT email: be mindful of links/attachments.
>
>
>
>
> Hi,
>
>
>
> if you need at app level I think we can create a bead for j:View and not
> j:ResponsiveView.
>
> Jewel is done with responsivity in mind to fit different screens and
> rearrange items as needed depending if users are on Desktop, Tablet,
> Phone,...
>
> So we usually deal with vertical scrolls but not with horizontal.
>
> Instead if we use a simple j:View that will be more like a Flex App. I'm
> just thinking loud and maybe I could find something as I dig and try on
> real code.
>
> So are you using View? or ResponsiveView?
>
>
>
>
>
> El mié, 30 dic 2020 a las 17:46, wkoch (<wa...@boeing.com>)
> escribió:
>
> I don't like horizontal scroll bars either which is why I wanted wrapping
> and
> column visibility.
>
> Since I have to make a wide grid wide enough to display the data elements I
> musthave one on the application.  That's probably what I need -- on the
> whole application not the grid.....
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
>
>
>
> --
>
> Carlos Rovira
>
> Apache Member & Apache Royale PMC
>
> *Apache Software Foundation*
>
> http://about.me/carlosrovira
>
>
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

RE: [EXTERNAL] Re: Datagrid - wordwrap a column

Posted by "Koch (US), Warren R" <wa...@boeing.com>.
View

<j:initialView>
<j:View>
<j:Group  x="10" y="5" width="1140">

I put everything in the Group.  Seems to work better that way

From: Carlos Rovira [mailto:carlosrovira@apache.org]
Sent: Wednesday, December 30, 2020 1:59 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: Datagrid - wordwrap a column


EXT email: be mindful of links/attachments.




Hi,

if you need at app level I think we can create a bead for j:View and not j:ResponsiveView.
Jewel is done with responsivity in mind to fit different screens and rearrange items as needed depending if users are on Desktop, Tablet, Phone,...
So we usually deal with vertical scrolls but not with horizontal.
Instead if we use a simple j:View that will be more like a Flex App. I'm just thinking loud and maybe I could find something as I dig and try on real code.
So are you using View? or ResponsiveView?


El mié, 30 dic 2020 a las 17:46, wkoch (<wa...@boeing.com>>) escribió:
I don't like horizontal scroll bars either which is why I wanted wrapping and
column visibility.

Since I have to make a wide grid wide enough to display the data elements I
musthave one on the application.  That's probably what I need -- on the
whole application not the grid.....



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
http://about.me/carlosrovira


Re: Datagrid - wordwrap a column

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

if you need at app level I think we can create a bead for j:View and not
j:ResponsiveView.
Jewel is done with responsivity in mind to fit different screens and
rearrange items as needed depending if users are on Desktop, Tablet,
Phone,...
So we usually deal with vertical scrolls but not with horizontal.
Instead if we use a simple j:View that will be more like a Flex App. I'm
just thinking loud and maybe I could find something as I dig and try on
real code.
So are you using View? or ResponsiveView?


El mié, 30 dic 2020 a las 17:46, wkoch (<wa...@boeing.com>)
escribió:

> I don't like horizontal scroll bars either which is why I wanted wrapping
> and
> column visibility.
>
> Since I have to make a wide grid wide enough to display the data elements I
> musthave one on the application.  That's probably what I need -- on the
> whole application not the grid.....
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: Datagrid - wordwrap a column

Posted by wkoch <wa...@boeing.com>.
I don't like horizontal scroll bars either which is why I wanted wrapping and
column visibility.

Since I have to make a wide grid wide enough to display the data elements I
musthave one on the application.  That's probably what I need -- on the
whole application not the grid.....



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: Datagrid - wordwrap a column

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

for horizontal scrolling I tried something locally that worked. I'll try
later to craft a bead for you.

Anyway, for usability, I recommend not using horizontal scroll bars, if the
data doesn't fit the space, better to show only what can be viewed
naturally, and then trigger some popup or open data in another part of the
screen with the rest. But this is just my opinion.


El mié, 30 dic 2020 a las 17:03, wkoch (<wa...@boeing.com>)
escribió:

> without the variable how height there really is no point in making a
> multi-line custom renderer. I did play with multi-line a bit but didn't
> work.
>
> It really needs to stay column oriented so as to display data in a form
> most
> users are used to (think Excel).
>
> I ended up making the columns wider to handle most of the data.  And that
> brings me to another issue.  How do I add a horizontal scroll bar to either
> the datagrid?  Another bead?
>
> Or better yet the whole application.  Right now there is no horizontal
> scrolling on my page.....
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: Datagrid - wordwrap a column

Posted by wkoch <wa...@boeing.com>.
without the variable how height there really is no point in making a
multi-line custom renderer. I did play with multi-line a bit but didn't
work.

It really needs to stay column oriented so as to display data in a form most
users are used to (think Excel).

I ended up making the columns wider to handle most of the data.  And that
brings me to another issue.  How do I add a horizontal scroll bar to either
the datagrid?  Another bead?

Or better yet the whole application.  Right now there is no horizontal
scrolling on my page.....



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: Datagrid - wordwrap a column

Posted by Carlos Rovira <ca...@apache.org>.
I think the issue seems to me the final one to solve to get a good
foundation for Jewel DataGrid. There will be more things to do, but more
like extensions or bugs to solve. I think it is worth the effort to solve
it.
I must say as well that I'm not focusing effort in DG since it is not a
component that I use, but people interested could spend some buck to
contract paid hours to solve this kind of thing. I think people like Greg
or others will be glad to work on that to finish it.

El mié, 30 dic 2020 a las 11:10, Piotr Zarzycki (<pi...@gmail.com>)
escribió:

> Unfortunately we are experiencing same issue. We probably for some
> DataGrid switch to commercial solution to handle that and many other cases.
>
> śr., 30 gru 2020 o 11:03 Carlos Rovira <ca...@apache.org>
> napisał(a):
>
>> Hi Warren,
>>
>> there's no actual support in Jewel DataGrid for different row heights.
>> That was the final layout problem to solve. We debated about changing the
>> actual "column oriented" layout to a "row oriented" layout to better manage
>> this problem. But since we had many things built on the actual approach, no
>> one worked in that variation.
>>
>> I think the only way right now is to set the height of the renderer to
>> have enough room for the content. That can mean some cells have more height
>> than needed.
>>
>> About wrapping, in labels and buttons there's a bead called "MultiLine"
>> that wraps content, so you can apply header buttons or datagrid custom cell
>> renderers if needed. Don't remember if default DGRenderer already wraps
>> label content.
>>
>> HTH
>>
>> Carlos
>>
>>
>> El mar, 29 dic 2020 a las 23:18, wkoch (<wa...@boeing.com>)
>> escribió:
>>
>>> In the FLEX datagrid there was a word wrap property than would
>>> automatically
>>> increase the height of a single row and "wrap" the contents if the column
>>> width limit is exceeded.
>>>
>>> I can't find this option anywhere.  Has this functionality been moved to
>>> a
>>> bead?
>>>
>>>
>>>
>>> --
>>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>>
>>
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> Piotr Zarzycki
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: Datagrid - wordwrap a column

Posted by Piotr Zarzycki <pi...@gmail.com>.
Unfortunately we are experiencing same issue. We probably for some DataGrid
switch to commercial solution to handle that and many other cases.

śr., 30 gru 2020 o 11:03 Carlos Rovira <ca...@apache.org> napisał(a):

> Hi Warren,
>
> there's no actual support in Jewel DataGrid for different row heights.
> That was the final layout problem to solve. We debated about changing the
> actual "column oriented" layout to a "row oriented" layout to better manage
> this problem. But since we had many things built on the actual approach, no
> one worked in that variation.
>
> I think the only way right now is to set the height of the renderer to
> have enough room for the content. That can mean some cells have more height
> than needed.
>
> About wrapping, in labels and buttons there's a bead called "MultiLine"
> that wraps content, so you can apply header buttons or datagrid custom cell
> renderers if needed. Don't remember if default DGRenderer already wraps
> label content.
>
> HTH
>
> Carlos
>
>
> El mar, 29 dic 2020 a las 23:18, wkoch (<wa...@boeing.com>)
> escribió:
>
>> In the FLEX datagrid there was a word wrap property than would
>> automatically
>> increase the height of a single row and "wrap" the contents if the column
>> width limit is exceeded.
>>
>> I can't find this option anywhere.  Has this functionality been moved to a
>> bead?
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 

Piotr Zarzycki

Re: Datagrid - wordwrap a column

Posted by Carlos Rovira <ca...@apache.org>.
Hi Warren,

there's no actual support in Jewel DataGrid for different row heights. That
was the final layout problem to solve. We debated about changing the actual
"column oriented" layout to a "row oriented" layout to better manage this
problem. But since we had many things built on the actual approach, no one
worked in that variation.

I think the only way right now is to set the height of the renderer to have
enough room for the content. That can mean some cells have more height than
needed.

About wrapping, in labels and buttons there's a bead called "MultiLine"
that wraps content, so you can apply header buttons or datagrid custom cell
renderers if needed. Don't remember if default DGRenderer already wraps
label content.

HTH

Carlos


El mar, 29 dic 2020 a las 23:18, wkoch (<wa...@boeing.com>)
escribió:

> In the FLEX datagrid there was a word wrap property than would
> automatically
> increase the height of a single row and "wrap" the contents if the column
> width limit is exceeded.
>
> I can't find this option anywhere.  Has this functionality been moved to a
> bead?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira