Show cool things you have done with our products


Post by wellrus »

Is it possible? You can give an example?

Sch.panel.SchedulerGrid


I created two Sch.panel.SchedulerGrid tables.

when trying to do ...
        me.initDD = function(mSched, dSched){
        	var view = mSched.getSchedulingView();
        	var taskDragZone = Ext.create("Project.TaskDragZone", dSched.el, {
            		taskGrid      : dSched,
            		schedulerView : view 
            	});
        };
browser displays a message
Uncaught TypeError: Cannot read property 'dom' of null

Post by mats »


Post by wellrus »

It uses 3.4.0 extjs. I'm using 4.0 extjs.

Post by mats »

Could you post your current implementation?

Post by wellrus »

I'm trying to remake this example
https://www.bryntum.com/examples/schedul ... gdrop.html


When i call me.initDD(mainSched, dopSched); the application terminated
Attachments
send.zip
(64.22 KiB) Downloaded 504 times

Post by mats »

I'd strongly advise to start simple. Don't start by building a full mvc app with extra task grids etc until you have the basics right. We cannot help you right now but we might be able to take a look at your code later - it's quite a lot to go through. If you had simplified it and removed unnecessary pieces it would've have been easier.

Post by wellrus »

ok. i will make it more simplify ... and try post tomorrow

Post by mats »

Remove _everything_ that has no meaning in the sample. No point in using MVC either. KISS!

Post by wellrus »

Based on the sample taken the next version. Еverything what has no meaning in the sample was removed.

Why dragged items are taken from resourceStore (not from eventStore)?
Attachments
test_my.zip
(67.34 KiB) Downloaded 487 times

Post by mats »

Quite a few errors in there, cleaned it up a little bit - now it runs!
Attachments
test_my_fixed.zip
(78.01 KiB) Downloaded 493 times

Post Reply