Question
Pegasystems Inc.
US
Last activity: 17 Aug 2017 21:32 EDT
Can we fix a column width in Pega 7.2.2 Grid?
We have a very long value in a Grid column and client wants to display only first 10 chars.
We tried the followings but did not succeed:
* Edit Input in property
* Max/Expected length in property
* Change under Presentation for Text Input in the Grid column
Any inputs is appreciated. Screenshot attached.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
This solution worked. Attached.
Pegasystems Inc.
IN
Hello Chow1,
Thanks for posting your query in PSC :)
Can you try to use pxShowEllipsis and let me know if this is feasible as per your business requirement? Refer the pyProductDescription column in the below screenshot.
Regards,
Rincy
Pegasystems Inc.
US
Thanks.
Can you elaborate a bit more on where/how to use pxShowEllipsis?
Pegasystems Inc.
US
RINCYRAPPAI_GCS, i just tried this and it is not working as required. See screenshots.
The column now shows all blank. Client wants to see an abbreviated property value.
For example, if "1234567890123456789012345678901234567890" is the actual property value, the Grid column needs to display "1234567890" only.
Pegasystems Inc.
IN
Hello Chow1,
Thanks for the response.
You need to configure this control on the field in the grid and not on the property.
Refer the below screenshot for your quick reference.
I hope this clarifies.
Regards,
Rincy
Pegasystems Inc.
IN
Hello Chow1
To achieve your requirement you can also do customization using script / css .
Please go through below links which can help you .
https://stackoverflow.com/questions/26973570/setting-a-max-character-length-in-css
https://stackoverflow.com/questions/8427295/javascript-to-trim-after-n-characters
Thanks & Regards,
Durga
Pegasystems Inc.
IN
Hello Chow1,
I have tried from my end using jQuery script please find the screenshots.
Same way you can also truncate the column td value to 10 characters.
I hope this will help you to achieve your requirement.
Thanks & Regards,
Durga
Pegasystems Inc.
US
Looks like that works.
Can you send me a screenshot of where you put the jQuery script? Which rule?
Accepted Solution
Pegasystems Inc.
US
This solution worked. Attached.