enterprise icon indicating copy to clipboard operation
enterprise copied to clipboard

DataGrid: Possibillity to show data type in the header

Open hohnzy opened this issue 4 years ago • 10 comments

Is your feature request related to a problem or use case? Please describe. We are filling the datagrid with data comming from SQL and because we need values to be displayed as strings as they come from backend (no localization, no datetime transformations, number formatting, etc) we somehow need to show users what data type it is like float, int8, int16, double, long, string, date, datetime, boolean, etc.

Describe the solution you'd like some kind of icons which could be set for the header like: image

or maybe something like subheader?

Describe alternatives you've considered Tooltip is not a solution for us, because its already showing possible ellipsified column names.

hohnzy avatar Nov 10 '20 16:11 hohnzy

Wondering if you know which other grid features you plan to use? Filter, Sort, Arrange?

tmcconechy avatar Nov 10 '20 16:11 tmcconechy

We have only search filtering. Column filtering is not user friendly when all the values are just string. Also sorting is not really applicable. Our product is basically SQL editor, so sorting and filtering can be done in a query image

hohnzy avatar Nov 10 '20 17:11 hohnzy

Screen Shot 2020-11-24 at 3 06 02 PM

cc @inforandy what do you think about making these database icons? Also what about the placement

tmcconechy avatar Nov 24 '20 20:11 tmcconechy

@hohnzy I don't think using icons would be a wise choice because I could see the communication breaking down very easily considering the very specific ones like " int8, int16, string". From my icon creator pov these would visually be hard to create metaphors for.

I think there's some weight with what was said about an 'eyebrow' text or maybe something such as a parenthesis after the col name example:

firstname (String)

Only problem there is losing the information to truncation, although the name would be available on hover or resize of the col headers.

Worth exploring @katieinfor maybe we can get a ticket for this assigned to me

kevinwhitedesign avatar Apr 12 '21 21:04 kevinwhitedesign

image These were used for the file types, I can imagine similar style... Or what about some kind of subheaders? I would rather have taller header row than forcing users to resize the columns (+ the column resizing is kinda buggy when all the columns fit into the screen width)

hohnzy avatar Apr 13 '21 13:04 hohnzy

My biggest concern is how to fit it in with all the other "icons" on the header here:

image

If we add this we'd need to make sure it all works/fits. Not certain there is a big advantage to adding this from a UX standpoint vs the complication.

tmcconechy avatar Apr 13 '21 13:04 tmcconechy

@kevinwhitedesign created a ticket for this in Jira! https://jira.infor.com/browse/UXD-2370 thanks.

ghost avatar Apr 13 '21 15:04 ghost

@tmcconechy let me know if there is any further feedback required here, otherwise looks like we are set

inforandy avatar Jul 19 '22 18:07 inforandy

@hohnzy after https://github.com/infor-design/enterprise/issues/6490 is done this should be possible FYI @inforandy i think we should be set

tmcconechy avatar Jul 19 '22 19:07 tmcconechy

This task has been completed

CindyMercadoReyes avatar Aug 03 '22 19:08 CindyMercadoReyes

Closing as this was implemented https://main-enterprise.demo.design.infor.com/components/datagrid/example-header-icon-with-tooltip.html

tmcconechy avatar Sep 15 '22 14:09 tmcconechy