Serenity: BUG? Header's Hint in Grid column

Created on 26 Jun 2018  路  6Comments  路  Source: serenity-is/Serenity

Is it possible somehow to have column header and hint ?
There is some kind of autohint feature - when column is too narrow for header to be displayed in full
but I need to prevent it with short Header, that fits and long hint displayed on hover over

request

Most helpful comment

Thanks @volkanceylan for getting back to me. So it's feature then. Since there is Hint attribute in Column.cs file, -if I may suggest- why not transfer hint of the Column to toolTip of the SlickGrid column?

I work around like this for now (but I feel there is such a 'little' step required:

protected getColumns() {
            var c = super.getColumns();

            c[Q.indexOf(c, x => x.field == UsersRow.Fields.FieldWithLongCaption)].toolTip = "Very long hint/tooltip, different from Column header";

            return c;
        }

All 6 comments

Could it be a bug? I set a hint for column, but that is not being set to SlickGrids ToolTip

Hint only used for form

Thanks @volkanceylan for getting back to me. So it's feature then. Since there is Hint attribute in Column.cs file, -if I may suggest- why not transfer hint of the Column to toolTip of the SlickGrid column?

I work around like this for now (but I feel there is such a 'little' step required:

protected getColumns() {
            var c = super.getColumns();

            c[Q.indexOf(c, x => x.field == UsersRow.Fields.FieldWithLongCaption)].toolTip = "Very long hint/tooltip, different from Column header";

            return c;
        }

Hint is only useful in a form, and a hint in a form might not be meaningful for a hint at a column. You may do as you show though.

But I can make Hint in column.cs, which is for grid? (at least Visual Studoi shows me, there is Hint). Why not make it work? just a suggestion. It is supported by slickgrid and you make it seem like it's supported in Columns.cs... It is just logical extension. Just my 2 cents. You wanna make it declarative on one hand and on other hand you want this simple Form supported feature to go in wain, because of what? Answer this simple Q and u will see...

Its your opinion and i said no

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Pinellus picture Pinellus  路  3Comments

john20xdoe picture john20xdoe  路  3Comments

ahsansolution picture ahsansolution  路  3Comments

AmuthaKondusamy picture AmuthaKondusamy  路  3Comments

moostafaa picture moostafaa  路  3Comments