ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Horizontal Scroll Not Supported on long Cell text

Open sachin-bs opened this issue 12 years ago • 5 comments

I am trying to force the ui-grid to horizontal scroll so that the users can see the entire cell contents rather than the over ridden text be ellipsised...

I have plunkd an example: http://plnkr.co/edit/TUem0Q90SWSFsQyfguUo?p=preview

Can you possible create a feature that enables the user to horizontal scroll based on the cell contents?

sachin-bs avatar Nov 13 '14 19:11 sachin-bs

You could use the resize-columns feature to let the user auto-size the column by double-clicking on the resizer. Try it here: http://plnkr.co/edit/rQoZwKsRFIqKYL2T7HQs?p=preview

c0bra avatar Nov 13 '14 21:11 c0bra

Yes, but it still doesn't display the full contents of the cell. The content is still truncated and has ellipsis at the end: truncated

sachin-bs avatar Nov 13 '14 21:11 sachin-bs

You can scroll within the cell (using cursor keys) if you use edit. Which isn't great, but could work. Ultimately what you're looking for is to set the column width very wide, we don't really have a feature for that. I'd be more inclined to adjust the cellTemplate to include a button of some sort, then display the full text in a popup. That seems likely to have better usability.

PaulL1 avatar Nov 13 '14 23:11 PaulL1

Try updating the grid column option maxWidth. By default it is 9000px, maybe you're going beyond that. I would really question the usability of columns that wide, though.

c0bra avatar Dec 08 '14 18:12 c0bra

No response after 2 weeks. Closing.

c0bra avatar Dec 22 '14 17:12 c0bra