Hello,
I’m using a serverlist to load the y unit for the timelineview, but I want to save the state of the sections (open or close). Is there an event to know what the state is of the section?
Regards,
Michiel Klaver
Hello,
I’m using a serverlist to load the y unit for the timelineview, but I want to save the state of the sections (open or close). Is there an event to know what the state is of the section?
Regards,
Michiel Klaver
Hello,
var elements = [ // original hierarhical array to display
{key:10, label:"Web Testing Dep.", open: true, children: [
{key:20, label:"Elizabeth Taylor"},
‘open’ property.
Kind regards,
Ilya
Hello Ilya,
I know that I can use this property, but how do I know when I click on it?
I need to know this so I can save the open state in the database.
Regards,
Michiel
scheduler.attachEvent("onYScaleClick", function(index,section,e) {
var isOpen = !section.open;
return true;
});
Kind regards,
Ilya
Hello Ilya,
This workes great, but only when I click on the text of the section, not the whole bar.
Is it possible to fix this also?
Regards,
Michiel
Hello,
It’s not longer YScale and need a bit different approach:
scheduler.attachEvent("onCellClick", function (x, y, a, b, event){
var section = scheduler.matrix[scheduler._mode].y_unit[y];
if(typeof section.children != "undefined") { // as cell click is made for children sections as well
var isOpen = !section.open;
return true;
}
};
Kind regards,
Ilya