Page 3 of 3

Re: Darag & Drop between 2 Scheduler

Posted: Thu Oct 13, 2011 9:15 am
by wellrus
How to disable events sorting?

Re: Darag & Drop between 2 Scheduler

Posted: Thu Oct 13, 2011 9:27 am
by mats
You mean row sorting? Did you look in the sencha docs for Column class?

Re: Darag & Drop between 2 Scheduler

Posted: Thu Oct 13, 2011 9:38 am
by wellrus
I mean internall call "sortEvents" function.
When events begin at the same time they are sorted by length.

Re: Darag & Drop between 2 Scheduler

Posted: Thu Oct 13, 2011 9:45 am
by mats
And how would you like them sorted? You need to override that method if you want a different layout.

Re: Darag & Drop between 2 Scheduler

Posted: Thu Oct 13, 2011 11:12 am
by wellrus
Ok. I thought that there is an option that disables a sort. Sorting is not convenient, for example, when you click on an item increases its time for an hour. Elements are reversed and you have to direct the mouse to a new position for re-click.

Re: Darag & Drop between 2 Scheduler

Posted: Thu Oct 13, 2011 11:13 am
by mats
Should be a simple tweak to override the sortEvents method to an empty method.

Re: Darag & Drop between 2 Scheduler

Posted: Mon Oct 17, 2011 12:39 pm
by wellrus
How to programmatically mark the event selected (for example by id)?

Re: Darag & Drop between 2 Scheduler

Posted: Mon Oct 17, 2011 12:51 pm
by mats
May I suggest you start a new thread for each question you have?

You can use selectNode on the selection model, which uses the dom node of a rendered event:
selectNode: function(node, keepExisting, suppressEvent) {
        var r = this.view.resolveEventRecord(node);
        if (r) {
            this.select(r, keepExisting, suppressEvent);
        }
    },

Re: Darag & Drop between 2 Scheduler

Posted: Mon Oct 17, 2011 12:54 pm
by wellrus
mats wrote:May I suggest you start a new thread for each question you have?
Ok

thank you