#{GridPanel1}.deleteSelected() not in documentation

  1. #1

    #{GridPanel1}.deleteSelected() not in documentation

    I can't find any documentation on deleteSelected(). I'm trying to delete a record from a GridPanel with a Store connected to a SQLDataSource. I know that the solution is very very stupid.

    This works:
    <Listeners>
    <Command Handler="Ext.Msg.alert(command, record.data.company);" />
    </Listeners>
    This does not work:
    <Listeners>
    <Command Handler="#{GridPanel1}.deleteSelected();" />
    </Listeners>
    What am I missing? What happens when the Handler calls deleteSelected()? Thanks!
    Last edited by Daniil; Mar 24, 2011 at 11:10 PM. Reason: Please use [CODE] tags
  2. #2
    I figured it out. I had the listener on a row command button and a row command button doesn't auto-select it's own row when it is clicked. I moved the delete button to the bottom of the panel with instructions to delete selected rows. Is there a delete(recordID) command?
  3. #3
    Hi,

    .delectSelected() is in Ext.Net sources , not ExtJS. Therefore it's absent in ExtJS docs.
    Is there a delete(recordID) command?
    Please use Store's .remove() or .removeAt() methods.
    http://dev.sencha.com/deploy/dev/doc...&member=remove
    http://dev.sencha.com/deploy/dev/doc...ember=removeAt

Similar Threads

  1. Replies: 2
    Last Post: Jun 27, 2011, 12:27 PM
  2. #{GridPanel1}.deleteSelected(); problem
    By sadeque in forum 1.x Help
    Replies: 2
    Last Post: Feb 14, 2010, 6:24 AM
  3. Gridpanel1 save method
    By Kamal in forum 1.x Help
    Replies: 1
    Last Post: Jun 10, 2009, 6:52 AM
  4. Replies: 15
    Last Post: May 12, 2009, 2:10 PM
  5. GridPanel DeleteSelected
    By Timothy in forum Bugs
    Replies: 4
    Last Post: Mar 23, 2009, 10:38 AM

Tags for this Thread

Posting Permissions