Show cool things you have done with our products


Post by VijaySM »

It's still not fixed..any help?

Post by mats »

Yes this is correct. But why you put 'myObject' as the children? Didn't we agree that it is an Object and that an Array is expected?

Post by VijaySM »

Yes You are right myObject should be array,
but if I use myObject.tasks.rows then it should not work?

var taskStore = new Gnt.data.TaskStore({
            calendarManager : me.crudManager.getCalendarManager(),
            resourceStore   : me.crudManager.getResourceStore(),
            dependencyStore : me.crudManager.getDependencyStore(),
            assignmentStore : me.crudManager.getAssignmentStore(),
            root : {
                children : myObject.tasks.rows,
                expanded : true
            }
        });
        me.crudManager = new Gnt.examples.advanced.crud.CrudManager({
            taskStore : new Gnt.examples.advanced.store.Tasks({
                calendarManager : new Gnt.examples.advanced.store.Calendars(),
                taskStore: taskStore
            })
        });

Post by mats »

constructor : function (config) {
        var me = this;

        me.crudManager = new Gnt.examples.advanced.crud.CrudManager({
            autoLoad : false,
            taskStore : new Gnt.examples.advanced.store.Tasks({
                calendarManager : new Gnt.examples.advanced.store.Calendars(),
                root : {
                    children : [
                        { Name  : 'Yes it works' }
                    ]
                }
            })
        });

Post Reply