Question

Long text in detail list view

I have a detail that can have long texts, as shown on the picture:

Is it possible to make the long text collapsible, so that it is shown only when user click's it intentionally? If not, do you have other ideas about how to present this data?

Like 0

Like

2 comments

Hello Carlos!



Unfortunately, we have no out-of-the-box functionality that you required. You can achieve it only via development.



The idea is to create custom css that will hide long text and js method that will show it when you clicked on a row. FYI: method that triggers when you click on a row is called "onActiveRowAction". I attached useful links that might help you below.



Work with row selection :https://community.bpmonline.com/articles/add-button-active-row-detail



Custom css: 

https://community.bpmonline.com/questions/how-add-custom-style-control-…

https://academy.bpmonline.com/documents/technic-sdk/7-12/advanced-setti…



Best regards,

Alex

Alex_Tim,

Thank you, it should work.

EDIT: I think I managed to do that with only CSS. I added this rule to my detail:

 

#UsrCommunicationDetailDetailControlGroup > div > div.grid-listed-row:not(.grid-row-selected) div {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

 

Show all comments