Results 1 to 6 of 6

Thread: How to do a delete , move up, move down functionality for a array grid row?

  1. #1

    Default How to do a delete , move up, move down functionality for a array grid row?

    Delete , move up, move down functionality for a array grid row, code below.

    var componentsconfig = new Ext.grid.GridPanel({
    store: store,
    columns: [
    {id:'company',header: '<b>Component</b>', sortable: true},
    {header: '<b>Display Name</b>', sortable: true},
    {header: '<b>Size</b>', sortable: true},
    {header: '<b>Filter</b>', sortable: true},
    {header: '<b>Target</b>', sortable: true},
    {header: '<b>Frequency</b>', sortable: true},
    {header: '<b>From Date</b>', sortable: true},
    {header: '<b>To Date</b>', sortable: true},
    {header: '<b>Relative Dates</b>', sortable: true}
    ],
    stripeRows: true,
    autoExpandColumn: 'company',
    height: 370,
    width: '100%',
    title: 'Component Configuration',
    bbar:[
    {xtype: 'tbfill'},
    {
    icon: '../image/reportui/icon-grid-deleteRow.png',
    tooltip:'Delete Selected Row' ,

    },
    {
    icon: '../image/reportui/icon-grid-moveup.png',
    tooltip:'Move to Up Selected Row'

    },
    {
    icon: '../image/reportui/icon-grid-movedown.png',
    tooltip:'Move to Down Selected Row'

    }
    ]
    })

    Thanks in advance for your help.

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    You already found the solution.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Location
    USA
    Posts
    111

    Default

    moving: http://wwww.extjs.com/learn/Ext_FAQ_...ticular_column
    delete: http://dev.sencha.com/deploy/dev/exa...l/restful.html
    in principle it`s easy, but if you`ll have a prblems,write here

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    The OP is talking about moving rows up/down in a grid, so your links are not relevant.

  5. #5
    Sencha User
    Join Date
    Nov 2010
    Location
    USA
    Posts
    111

    Default

    Ah,really,I`m sorry. As delete,this link relevant

  6. #6

    Default

    Thank you aramaki, delete functionality really working fine

Similar Threads

  1. how to move the grid's row up and down?
    By enotsl in forum Ext 2.x: Help & Discussion
    Replies: 19
    Last Post: 2 Oct 2017, 11:46 PM
  2. Move row at any position in a paged grid
    By deeptibughani in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 22 Dec 2008, 12:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •