[CLOSED] How I create a 'Add Item' gridPanel?

  1. #1

    [CLOSED] How I create a 'Add Item' gridPanel?

    Hi

    I wish create a gridPanel in 'add item' mode.
    i.e, the last line in blank. When i click in columns of this last line, a new line is created bellow and the current line is editable.

    The data should be stored in memory, or in local array, and update in the database only then OK button clicked.

    There are any example for I follow?

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

    Unfortunately, we have no such example.

    I think it's possible and there should not be a big problem.

    I would look into the Events API of the CellEditing plugin. You, probably, will need to use its BeforeEdit and Edit events.
    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.CellEditing-event-beforeedit
    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.CellEditing-event-edit
    Last edited by Daniil; Feb 23, 2012 at 3:06 PM.
  3. #3
    Ok!

    I try follow this examples.

    Thank you, Daniil!

Similar Threads

  1. [CLOSED] Delete item GridPanel
    By stoque in forum 1.x Premium Help
    Replies: 4
    Last Post: Jun 07, 2011, 6:01 PM
  2. [CLOSED] Create GridPanel dinamically with javascript
    By Pablo_Azevedo in forum 1.x Premium Help
    Replies: 4
    Last Post: Nov 09, 2010, 9:58 PM
  3. Create GridPanel's question
    By sindevil0010 in forum 1.x Help
    Replies: 1
    Last Post: Aug 24, 2010, 8:05 AM
  4. Replies: 1
    Last Post: Jun 01, 2009, 5:15 PM
  5. How to create new row in GridPanel?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: Apr 22, 2009, 1:45 PM

Posting Permissions