Page 1 of 1

Edit field width

Posted: Thu Dec 29, 2022 6:00 am
by crash

I am using the list page width to set the width of the field in list and size in edit, this works well but anything with a dropdown stays wide.
Eg grid edit, inline edit and normal edit, with dropdown does not change.

Where do I change the width of the dropdown field ?

Many thanks


Re: Edit field width

Posted: Thu Dec 29, 2022 6:21 am
by darkdragon

check the min-width property


Re: Edit field width

Posted: Sat Dec 31, 2022 8:20 pm
by crash

Thanks, I did that in the HTML settings but it sets all the columns to a same min width, I need to set column widths individually in the gridedit page.
Any other options ?


Re: Edit field width

Posted: Mon Jan 09, 2023 6:08 am
by crash

Where would I change the field width to min width ?


Re: Edit field width

Posted: Mon Jan 09, 2023 7:16 am
by MichaelG

Use the Row_Rendered server event and set the field's CssStyle. For example:

Field.CssStyle = "min-width: 100px;";


Re: Edit field width

Posted: Tue Jan 10, 2023 5:25 am
by crash

This does not work for inline edit or grid edit.


Re: Edit field width

Posted: Tue Jan 10, 2023 7:26 am
by MichaelG

Are you using select2? If yes, google for "select2 auto width".