[#407 support for row reordering in sclickgrid]
This commit is contained in:
@@ -155,26 +155,6 @@ my.SlickGrid = Backbone.View.extend({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//Add row delete support, check if enableReOrderRow is set to true , by
|
|
||||||
//default it is set to false
|
|
||||||
// state: {
|
|
||||||
// gridOptions: {
|
|
||||||
// enableReOrderRow: true,
|
|
||||||
// },
|
|
||||||
if(this.state.get("gridOptions")
|
|
||||||
&& this.state.get("gridOptions").enableReOrderRow != undefined
|
|
||||||
&& this.state.get("gridOptions").enableReOrderRow == true ){
|
|
||||||
columns.push({
|
|
||||||
id: 'del',
|
|
||||||
name: '',
|
|
||||||
field: 'del',
|
|
||||||
sortable: true,
|
|
||||||
width: 38,
|
|
||||||
formatter: formatter,
|
|
||||||
validator:validator
|
|
||||||
})
|
|
||||||
}
|
|
||||||
//Add row delete support, check if enabledDelRow is set to true , by
|
//Add row delete support, check if enabledDelRow is set to true , by
|
||||||
//default it is set to false
|
//default it is set to false
|
||||||
// state: {
|
// state: {
|
||||||
@@ -194,6 +174,25 @@ my.SlickGrid = Backbone.View.extend({
|
|||||||
cssClass: "recline-cell-reorder"
|
cssClass: "recline-cell-reorder"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//Add row delete support, check if enableReOrderRow is set to true , by
|
||||||
|
//default it is set to false
|
||||||
|
// state: {
|
||||||
|
// gridOptions: {
|
||||||
|
// enableReOrderRow: true,
|
||||||
|
// },
|
||||||
|
if(this.state.get("gridOptions")
|
||||||
|
&& this.state.get("gridOptions").enableReOrderRow != undefined
|
||||||
|
&& this.state.get("gridOptions").enableReOrderRow == true ){
|
||||||
|
columns.push({
|
||||||
|
id: 'del',
|
||||||
|
name: '',
|
||||||
|
field: 'del',
|
||||||
|
sortable: true,
|
||||||
|
width: 38,
|
||||||
|
formatter: formatter,
|
||||||
|
validator:validator
|
||||||
|
})
|
||||||
|
}
|
||||||
_.each(this.model.fields.toJSON(),function(field){
|
_.each(this.model.fields.toJSON(),function(field){
|
||||||
var column = {
|
var column = {
|
||||||
id: field.id,
|
id: field.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user