MaxTextLength for DataGrid column

Hi Jmix Support team,

In JMIX Flow UI we do not have a Table component anymore therefore have changed all our existing screens in CUBA that is using the Table component to DataGrid in JMIX. But in Jmix’s DataGrid we do not have the option to set “maxTextLength” like we could in Tables previously.

Could we have this feature re-introduced into JMIX’s DataGrid as well, are there any plans to do so in the future roadmap?

Best regards,
Wei Jian.

Hello!

There is no analogs in Flow UI for maxTextLength =; an also no plans to implement it(table that fully trimmed by text length is outdated behaviour).

But you can make your own renderer that will trimming text and put … after text limit. Just use vaadin’s popover on “…” component.

By the way, this renderer is good idea for new Jmix functionality. I’ve made Github issue that describes what you want. Should be implemented in near future im phase of bug-fixes and short issues (but i am not giving any guarantee).

Best regards,
Dmitry

1 Like