[CLOSED] Make GridPanel ReadOnly

  1. #1

    [CLOSED] Make GridPanel ReadOnly

    Hi Team,

    I have a gridpanel in which i can edit cells for batch save.
    But for some scenarios i need to make it not editable.

    Can you please tell how do i achieve that i need the code on Ext.Onready function

    Thank You
    Last edited by Daniil; Jul 17, 2013 at 4:25 AM. Reason: [CLOSED]
  2. #2
    Hi @PriceRightHTML5team,

    I can suggest the following solution.

    1. Set up:
    <ext:CellEditing runat="server">
        <Listeners>
            <BeforeEdit Handler="return !e.grid.lockEditing;" />
        </Listeners>
    </ext:CellEditing>
    2. Lock this way:
    App.GridPanel1.lockEditing = true;
    3. Unlock this way:
    App.GridPanel1.lockEditing = false;
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @PriceRightHTML5team,

    I can suggest the following solution.

    1. Set up:
    <ext:CellEditing runat="server">
        <Listeners>
            <BeforeEdit Handler="return !e.grid.lockEditing;" />
        </Listeners>
    </ext:CellEditing>
    2. Lock this way:
    App.GridPanel1.lockEditing = true;
    3. Unlock this way:
    App.GridPanel1.lockEditing = false;
    Thanks Daniil that worked

Similar Threads

  1. [CLOSED] Make gridpanel row fit text
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 23, 2013, 2:40 PM
  2. [OPEN] [#142] Make checkboxes in a TreePanel readonly
    By bogc in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 04, 2013, 7:00 AM
  3. Replies: 8
    Last Post: Jan 11, 2013, 11:49 AM
  4. Replies: 2
    Last Post: Jan 10, 2013, 2:06 PM
  5. How to make MouseOver on GridPanel
    By inualonline in forum 1.x Help
    Replies: 4
    Last Post: Feb 16, 2010, 10:48 PM

Tags for this Thread

Posting Permissions