[CLOSED] GridPanel.DirectEvent.ColumnResize - How I get the column resized?

  1. #1

    [CLOSED] GridPanel.DirectEvent.ColumnResize - How I get the column resized?

    Hi

    I wish save the size of columns in my GridPanel in Databank.

    I am using the directevent ColumnResize.

    how do I know which column has been resized?

    Thanks for any help!
    Last edited by Daniil; Feb 22, 2012 at 10:14 AM. Reason: [CLOSED]
  2. #2
    Hi,

    A resized column is passed as an argument to the ColumnResize event.
    http://docs.sencha.com/ext-js/4-0/#!...t-columnresize

    To get its index you can use the Column's getIndex method.
    http://docs.sencha.com/ext-js/4-0/#!...ethod-getIndex

    So, you can pass the resized column index as a DirectEvent extra parameter.
    <ext:Parameter Name="index" Value="column.getIndex()" Mode="Raw" />
  3. #3
    Hi Daniil

    Thanks a lot for your help...

    Using your example, I made this extraparams:

    <ext:Parameter Name="colDataIndex" Value="column.dataIndex" Mode="Raw" />
    <ext:Parameter Name="colWidth" Value="column.getWidth()" Mode="Raw" />
  4. #4
    A new width is passed as a separate argument.

    So, you could replace:
    <ext:Parameter Name="colWidth" Value="column.getWidth()" Mode="Raw" />
    with
    <ext:Parameter Name="colWidth" Value="width" Mode="Raw" />
  5. #5
    Ok! Thanks a lot

Similar Threads

  1. Replies: 7
    Last Post: Sep 02, 2016, 7:47 PM
  2. [CLOSED] Ext.net v2 Beta release: GridPanel not resized in ViewPort
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 19, 2012, 12:43 PM
  3. [CLOSED] How to set a column's hideable property during a DirectEvent
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: May 23, 2011, 8:40 PM
  4. [CLOSED] How can I update a GridPanel column header during a DirectEvent?
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 12, 2010, 1:16 PM
  5. [FIXED] [V0.8] Icons getting resized
    By dbassett74 in forum Bugs
    Replies: 1
    Last Post: Apr 22, 2009, 1:19 PM

Posting Permissions