How do I update the default Datagrid2 Appearance to Auto-fit content

0
Currently I have lots of Datagrids that I want to update into Datagrid2's.   I'm having to got through multiple instances of updating the Column width. How do I just default it to this setting as it's going to be our default setting.     Within Github (widgets-resources/packages/pluggableWidgets/datagrid-web/src/Datagrid.xml) I can see that the default value is set to autoFill.  Where/how do I change this via Studio Pro or any other way?   <propertyGroup caption="Appearance"> <property key="width" type="enumeration" defaultValue="autoFill"> <caption>Column width</caption> <description /> <enumerationValues> <enumerationValue key="autoFill">Auto-fill</enumerationValue> <enumerationValue key="autoFit">Auto-fit content</enumerationValue> <enumerationValue key="manual">Manual</enumerationValue> </enumerationValues> </property>   https://github.com/mendix/widgets-resources/blob/master/packages/pluggableWidgets/datagrid-web/src/Datagrid.xml 
asked
1 answers
0

Hi Colin,

I'm afraid there's no default setting override available at the moment. As a workaround, you could adjust the setting in the Datagrid.xml yourself. To do so, just change the widgets/com.mendix.widget.web.Datagrid.mpk file extension to .zip, unzip it, edit the defaultValue in Datagrid.xml, zip it and rename it back to .mpk.

But you'd have to do this every time you update the datagrid from the Marketplace.

answered