Support Forum
I'm pretty sure that reordering is a feature of 2.x branch, not 1.x so you would need to use Ext 4.
JavaScript/Angular/ExtJS consulting - kuba@virtualdesign.pl
thank u
Now i am using 2.x Gantt chart[version 2.0.9....licensed]
loading tasks from back end....following exception is coming in
gnt-all-debug.js:9081Uncaught TypeError: Object [object Object] has no method 'normalize'
using in asp.net ....how to fix this ??
Now i am using 2.x Gantt chart[version 2.0.9....licensed]
loading tasks from back end....following exception is coming in
gnt-all-debug.js:9081Uncaught TypeError: Object [object Object] has no method 'normalize'
onNodeAdded : function (parent, node) {
if (!node.normalized && !node.isRoot()) {
node.normalize();
Uncaught TypeError: Object [object Object] has no method 'normalize'
}
this.callParent(arguments);
},
using in asp.net ....how to fix this ??
can you log 'node' to the console ? From what I remember, in onNodeAdded you get : https://docs.sencha.com/ext-js/4-0/#!/ap ... eInterface which has no 'normalize' method.
JavaScript/Angular/ExtJS consulting - kuba@virtualdesign.pl
There's no such thing as 'impossible' in programming. But we do not have plans on implementing reordering for 1.x branch, so you would have to do it by yourself.
As for 2.x examples :
https://bryntum.com/examples/gantt-lates ... order.html
As for 2.x examples :
https://bryntum.com/examples/gantt-lates ... order.html
JavaScript/Angular/ExtJS consulting - kuba@virtualdesign.pl
Hi
I am using "ext-4.0.2a"[licensed version"],
following issues are i m facing
1) When i create new task,or add task below or task above etc...its not calling "create" method[web service method]
from your code .
2)I have modified in "Gnt.plugin.TaskContextMenu" ,its not showing changes after running the application.
3) when try to delete task its not calling Delete method
below i mentioned what i am using for to update database
Please share if have any working sample,i need to update or create data base without pressing "Save" button
its urgent
I am using "ext-4.0.2a"[licensed version"],
following issues are i m facing
1) When i create new task,or add task below or task above etc...its not calling "create" method[web service method]
from your code .
2)I have modified in "Gnt.plugin.TaskContextMenu" ,its not showing changes after running the application.
3) when try to delete task its not calling Delete method
below i mentioned what i am using for to update database
Ext.ns('App');
//Ext.Loader.setConfig({enabled: true, disableCaching : false });
//Ext.Loader.setPath('Gnt', '../../js/Gnt');
//Ext.Loader.setPath('Sch', '../../../ExtScheduler2.x/js/Sch');
//Ext.Loader.setPath('MyApp', '.');
Ext.require([
'MyApp.DemoGanttPanel'
]);
Ext.onReady(function() {
Ext.QuickTips.init();
App.Gantt.init();
});
App.Gantt = {
// Initialize application
init : function(serverCfg) {
this.gantt = this.createGantt();
var vp = Ext.create("Ext.Viewport", {
layout : 'border',
items : [
{
region : 'north',
contentEl : 'north',
bodyStyle : 'padding:15px'
},
this.gantt
]
});
},
createGantt : function() {
Ext.define('MyTaskModel', {
extend : 'Gnt.model.Task',
// A field in the dataset that will be added as a CSS class to each rendered task element
clsField : 'TaskType',
fields : [
{ name: 'TaskType', type: 'string' },
{ name: 'Id', type: 'int', useNull : true},
{ name: 'StartDate', type: 'date', dateFormat: 'MS' },
{ name: 'EndDate', type: 'date', dateFormat: 'MS' },
{ name: 'Priority', defaultValue : 1 },
{ name: 'PercentDone', type: 'int', defaultValue: 0 }
]
});
var taskStore = Ext.create("Gnt.data.TaskStore", {
autoSync: true,
model: 'MyTaskModel',
sorters: 'StartDate',
proxy: {
type: 'ajax',
method: 'GET',
headers: { "Content-Type": 'application/json' },
api: {
read: 'webservices/Tasks.asmx/Get',
create: 'webservices/Tasks.asmx/Create',
destroy: 'webservices/Tasks.asmx/Delete',
update: 'webservices/Tasks.asmx/Update'
},
writer: {
type: 'json',
root: 'jsonData',
encode: false,
allowSingle: false
},
reader: {
type: 'json',
root: function (o) {
if (o.d) {
return o.d;
} else {
return o.children;
}
}
}
}
});
var dependencyStore = Ext.create("Ext.data.Store", {
autoLoad: true,
autoSync: true,
model: 'Gnt.model.Dependency',
proxy: {
type: 'ajax',
headers: { "Content-Type": 'application/json' },
method: 'GET',
reader: {
root: 'd',
type: 'json'
},
writer: {
root: 'jsonData',
type: 'json',
encode: false,
allowSingle: true
},
api: {
read: 'webservices/Dependencies.asmx/Get',
create: 'webservices/Dependencies.asmx/Create',
destroy: 'webservices/Dependencies.asmx/Delete'
}
}
});
var g = Ext.create("MyApp.DemoGanttPanel", {
region : 'center',
selModel : new Ext.selection.TreeModel({ ignoreRightMouseSelection : false, mode : 'MULTI'}),
taskStore : taskStore,
dependencyStore : dependencyStore,
//snapToIncrement : true, // Uncomment this line to get snapping behavior for resizing/dragging.
startDate : new Date(2011,0,4),
endDate : Sch.util.Date.add(new Date(2012,0,4), Sch.util.Date.WEEK, 20),
viewPreset : 'weekAndDayLetter'
});
g.on({
dependencydblclick : function(ga, rec) {
var from = taskStore.getNodeById(rec.get('From')).get('Name'),
to = taskStore.getNodeById(rec.get('To')).get('Name');
Ext.Msg.alert('Hey', Ext.String.format('You clicked the link between "{0}" and "{1}"', from, to));
},
scope : this
});
return g;
}
};
its urgent
This is a bug in Ext4.0.2 (`autoSync` option for tree store does not work). Try to upgrade to 4.0.7.
Read the API documentation