1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    18
    Vote Rating
    0
    charan@dev.com is on a distinguished road

      0  

    Exclamation Records draggable with in a grid..

    Records draggable with in a grid..


    Team, I want the records in the grid to be dragged up and down..

    Here, is my code:


    var myData = {
    records : [
    {name:'Charan'},
    {name:'Balaji'},
    {name:'Ravi'}
    ]

    };


    var fields = [
    {name: 'name', mapping : 'name'}
    ];

    // create the data store
    var firstGridStore = new Ext.data.JsonStore({
    fields : fields,
    data : myData,
    root : 'records',

    });


    // Column Model shortcut array
    var cols = [
    {id : 'name', header: "Requirement Name", width: 200, sortable: true, dataIndex: 'name',flex:true}
    ];


    // declare the source Grid
    var firstGrid = new Ext.grid.GridPanel({
    ddGroup : 'secondGridDDGroup',
    store : firstGridStore,
    columns : cols,
    enableDragDrop : true,
    collapsible : true,
    stripeRows : true,
    autoExpandColumn : 'name',
    width : 400,
    region : 'west',
    title : 'Phase',
    viewConfig: {
    plugins: {
    ptype: 'gridviewdragdrop',
    dragText: 'Drag and drop to reorganize'
    }
    }

    });


    Before I posted the same ques. I gone through this link , but cannot sort it out.
    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.DragDrop

    C
    an anyone help me in getting this functionality...

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    18
    Vote Rating
    0
    charan@dev.com is on a distinguished road

      0  

    Default


    I am using extjs 3.0, but the example in the link is Extjs 4.0..

    I dont know what to do. Please guide me...

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar