Unanswered: Dynamic grid columns shift on row entry
Unanswered: Dynamic grid columns shift on row entry
Hello,
So I have a problem right now where I have a grid that lets the user fill out a form and add it to the grid. The problem occurs when the number of rows is bigger than the grid size. When this happens, the column that has the "flex" attribute is shifted off and all the records fly to the left. I copy and pasted the example here http://docs.sencha.com/ext-js/4-0/#!...l/restful.html and I still got the same results. Is there a bug in earlier 4.x versions and the example is up to date? or could it be the container that is holding my grid? this is my container:
var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToMoveEditor: 1,
autoCancel: false
});
Okay so I got this to work but only after I moved the grid into the same JS file that my containers were in. I had it originally in a seperate JS file and loaded that file first. Any idea why having it in the same file as the containers would make it work?
it shouldnt matter if you have code split in multiple files. However, the grid should be defined when you use it in the items of the panel. What you could try is to add the grid to the panel after creating the grid and not when the panel is created. have no idea about your original problem though.
to your grid. This will make scrollbars appear when there are more records than the height of the grid. It defaults to false according to the API docs.