Show cool things you have done with our products


Post by wellrus »

How to disable events sorting?

Post by mats »

You mean row sorting? Did you look in the sencha docs for Column class?

Post by wellrus »

I mean internall call "sortEvents" function.
When events begin at the same time they are sorted by length.
Attachments
Assigntment 3 and Assigntment 2 sorted with length.png
Assigntment 3 and Assigntment 2 sorted with length.png (48.63 KiB) Viewed 7416 times

Post by mats »

And how would you like them sorted? You need to override that method if you want a different layout.

Post 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.

Post by mats »

Should be a simple tweak to override the sortEvents method to an empty method.

Post by wellrus »

How to programmatically mark the event selected (for example by id)?

Post 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);
        }
    },

Post by wellrus »

mats wrote:May I suggest you start a new thread for each question you have?
Ok

thank you

Post Reply