1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
    capturetheflag is on a distinguished road

      0  

    Default How can I remove the border of an EditorGridPanel in extJs?

    How can I remove the border of an EditorGridPanel in extJs?


    Hi,

    I am new to extJs. I want to make the border of an EditorGridPanel invisible so that it becomes just a blank white space (My purpose is to show it inside a fieldset).

    How can I achieve this? Here is the code for my EditorGridPanel.

    CODE BEGINS
    var iLineItemGrid = new Ext.grid.EditorGridPanel({
    id: 'iLineItemStore',
    store: iLineItemStore,
    cm: iLineItemCM,
    cls: 'iLineItemGrid',
    width: 'auto',
    height: 'auto',
    style:'border: none;',//tried this to hide border
    hideBorders: true,// this did not work
    //title:'Edit Plants?',
    frame:false,
    //plugins:checkColumn,
    clicksToEdit:1,
    viewConfig: {
    //forceFit: true
    autoFit:true
    },
    tbar: [{
    text: 'Add',
    tooltip:'Add the line item',
    handler : function(){
    var r = new iLineItemRec({
    i_line_item_name: '',
    i_line_item_amt: ''
    });
    iLineItemGrid.stopEditing();
    iLineItemStore.insert(0, r);
    iLineItemGrid.startEditing(0, 0);
    }
    },
    {
    text: 'Delete',
    tooltip:'Remove the selected line item',
    handler: function(){
    iLineItemGrid.stopEditing();
    var r = iLineItemGrid.getSelectionModel().getSelectedCell();
    iLineItemStore.removeAt(r[1]);
    }

    }

    ]
    });

    CODE ENDS

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,332
    Vote Rating
    83
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi
    Try to use border:'false' config to your EditorGridPanel
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

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