Disable column reorder in gridpanel

  1. #1

    Disable column reorder in gridpanel

    Hi,

    i search the forum for this, but i was unable to find a answer.

    I have a grid which i would like to disable column reorder. I don't want my client to drag and drop the columns and change their order, because i index the columns by its position and not by name in javascript ( i know this isn't the best approach, but was the only one i found to prevent editing some fields based on a column value).

    The point is, how can i prevent the user from reorder the columns?


    edited: Just update my signature and remove the same text for reading reasons.
  2. #2

    RE: Disable column reorder in gridpanel

    Hi,

    There is EnableColumnMove property (also can be required to use EnableColumnHide to prevent column hiding)


    P.S. To prevent editing by field name use the following listener for GridPanel
    <BeforeEdit Handler="if(e.field == 'Company'){e.cancel = true;}" />
  3. #3
    Thanks works perfect for me.... but i use e.value, because I need to edit only when value is blank.

    <BeforeEdit Handler="if(e.value != ''){e.cancel = true;}" />

Similar Threads

  1. Replies: 2
    Last Post: Feb 22, 2012, 4:16 PM
  2. [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
  3. Replies: 4
    Last Post: Mar 01, 2011, 9:45 AM
  4. Reorder tabs?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: Apr 07, 2010, 10:26 PM
  5. [CLOSED] [1.0] Column reorder
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 25, 2010, 7:08 PM

Posting Permissions