[CLOSED] Column visible index and HeaderRow disables column move in GridPanel

  1. #1

    [CLOSED] Column visible index and HeaderRow disables column move in GridPanel

    Hi,

    When i add a Header Row to my GridPanel, the column Move functionality does not work. Is this by design. If so will a changed be made in the future to fascilitate moving a column in a GridPanel that has a HeaderRow.

    Is there a way to specify and retrieve the visible index of a column. example, when a column is moved, can this new index be captured so that it can be specified when the gridpanel is loaded in the future. I am saving the settings of the gridlayout and would like to be able to get and set this property on a gridpanel column.
  2. #2

    RE: [CLOSED] Column visible index and HeaderRow disables column move in GridPanel

    Hi,

    When
    i add a Header Row to my GridPanel, the column Move functionality does
    not work. Is this by design. If so will a changed be made in the future
    to fascilitate moving a column in a GridPanel that has a HeaderRow.


    HeaderRow deactivates column moving because moving destroys controls inside header row.



    Is
    there a way to specify and retrieve the visible index of a column.
    example, when a column is moved, can this new index be captured so that
    it can be specified when the gridpanel is loaded in the future. I am
    saving the settings of the gridlayout and would like to be able to get
    and set this property on a gridpanel column.


    You can handle ColumnMove event of the GridPanel

    columnmove : ( <code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console','Courier New',Courier,monospace; font-size: 12px;">Number oldIndex</code>, <code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console','Courier New',Courier,monospace; font-size: 12px;">Number newIndex</code> )<div class="mdesc" style="margin: 0px; padding: 5px 0px; color: rgb(68, 68, 68);"><div class="long" style="margin: 0px; padding: 0px; display: block; line-height: 18px;">Fires when the user moves a column<div class="mdetail-params" style="margin: 10px 0px 0px; padding: 0px 0px 0px 12px; font-size: 12px;"><strong style="font-style: normal; font-weight: normal; display: block; margin-bottom: 3px; font-size: 11px; color: rgb(85, 85, 85);">Listeners will be called with the following arguments:[/b]<ul style="margin: 12px; padding: 0px; list-style-type: circle; list-style-position: inside;"><li style="margin: 0px; padding: 0px; list-style-position: inside; list-style-type: circle;"><code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console','Courier New',Courier,monospace; font-size: 12px;">oldIndex</code> : Number<li style="margin: 0px; padding: 0px; list-style-position: inside; list-style-type: circle;"><code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console','Courier New',Courier,monospace; font-size: 12px;">newIndex</code> : Number[/list]



    Also you can always to call the following code to determine column position by data index
    grid.getColumnModel().findColumnIndex('dataindex')
  3. #3

    RE: [CLOSED] Column visible index and HeaderRow disables column move in GridPanel

    Thanks alot, that helped a lot.

    How can you specify the column index from server side in my case where i am building and loading my grid panel dynamically from the server side. I am not seeing a column index property.


  4. #4

    RE: [CLOSED] Column visible index and HeaderRow disables column move in GridPanel

    Hi,

    How can you specify the column index from server side in my case where i am building and loading my grid panel dynamically from the server side.
    Just place columns to the Columns collection using correct sequence (sequence in the Columns collection correspond to the grid's columns positions)

Similar Threads

  1. [CLOSED] disable column move in gridpanel
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 14, 2011, 7:36 AM
  2. Replies: 2
    Last Post: Jul 06, 2011, 10:51 PM
  3. [CLOSED] Get column index with rowSelectionModel
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 28, 2010, 4:22 PM
  4. [CLOSED] Icon column in GridPanel based on column from store
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 12, 2010, 5:46 PM
  5. [CLOSED] [1.0] gridpanel multi header + column move
    By brettmas in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 28, 2010, 5:20 AM

Posting Permissions