Edit field width

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
crash
User
Posts: 148

Edit field width

Post 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


darkdragon
User
Posts: 148

Post by darkdragon »

check the min-width property


crash
User
Posts: 148

Post 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 ?


crash
User
Posts: 148

Post by crash »

Where would I change the field width to min width ?


MichaelG
User
Posts: 1095

Post by MichaelG »

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

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


crash
User
Posts: 148

Post by crash »

This does not work for inline edit or grid edit.


MichaelG
User
Posts: 1095

Post by MichaelG »

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


Post Reply