[CLOSED] PropertyGrid - set width of columns?

  1. #1

    [CLOSED] PropertyGrid - set width of columns?

    Hey,

    im trying to set a specified width for a column in a PropertyGrid. Its not working. can it be done?

    <ext:PropertyGrid runat="server" ID="propertyGridCustomerInfo">
        <Store>
            <ext:Store runat="server" ID="StoreCustomerProperties">
                <Reader>
                    <ext:ArrayReader>
                        <Fields>
                            <ext:RecordField Name="PropertyName"></ext:RecordField>
                            <ext:RecordField Name="PropertyValue"></ext:RecordField>
                        </Fields>
                    </ext:ArrayReader>
                </Reader>
            </ext:Store>
        </Store>
        <ColumnModel>
            <Columns>
                <ext:Column Header="Egenskap" Width="50" Sortable="false"></ext:Column>
                <ext:Column Header="Värde" ></ext:Column>
            </Columns>
        </ColumnModel>
    </ext:PropertyGrid>
    Last edited by Daniil; May 17, 2011 at 2:02 PM. Reason: [CLOSED]
  2. #2
    Hi,

    PropertyGrid doesn't support custom ColumnModel.

    Also I just looked in the sources and surprised that columns width are hardcoded in ExtJS.

    I can suggest this workaround:
    <ext:GridView ...>
        <Listeners>
            <Refresh Handler="this.grid.colModel.setColumnWidth(0, 200);
                              this.grid.colModel.setColumnWidth(1, 150);" />
        </Listeners>
    </ext:GridView>
  3. #3
    A GridView inside a PropertyGrid?

    There is no Refresh listener for PropertyGrid...
  4. #4
    <ext:PropertyGrid> => <View> => <ext:GridView> => <Listeners> => <Refresh>

    Hope this helps.

Similar Threads

  1. [CLOSED] Grid Columns width
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 11, 2012, 10:37 AM
  2. PropertyGrid with many columns
    By luiz in forum 1.x Help
    Replies: 1
    Last Post: May 03, 2011, 4:19 PM
  3. [1.0] RowEditor and columns width problem
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 07, 2010, 1:56 AM
  4. [CLOSED] GridPanel columns width
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 03, 2009, 10:04 AM
  5. Grid Panel Columns width in percentage
    By Rod in forum 1.x Help
    Replies: 0
    Last Post: Oct 03, 2008, 5:31 AM

Tags for this Thread

Posting Permissions