Our state of the art Gantt chart


Post by agarcia »

Hello,

We have a Gantt with a TaskStore, We would need to listen to the Outdent event, We've followed the documentation, however the outdent event is not triggered never in our TaskStore.

I've tried in Bryntum examples and it triggers correctly the event. I share with you the Store Config for you to see if We have something that could affect to this. I've tried the indent event, and the indent events is triggered well. But the outdent not.

This is the TaskStore Config

const newStore = new bryntum.gantt.TaskStore({
      wbsMode: "auto",
      modelClass: GanttTaskModel,
      onOutdent: function ({ source, records }) {
        console.log('OUTDENT TASKs NOT WORKING', records)
      },
      onIndent: function ({ source, records }) {
        console.log('INDENT TASKs WORKING', records)
      }
});

There is something known that could affect to that? ( none of outdent and beforeOutdent event triggered )?

If you could help us on that we would appreciate.

Thank you


Post by ghulam.ghous »

Hi there,

Can you please try this:

const newStore = new bryntum.gantt.TaskStore({
      wbsMode: "auto",
      modelClass: GanttTaskModel,
      onOutdent({ source, records }) {
        console.log('OUTDENT TASKs NOT WORKING', records)
      },
      onIndent({ source, records }) {
        console.log('INDENT TASKs WORKING', records)
      }
});

And please let us know that whether it has worked for you or not.

Regards,
Ghous


Post by agarcia »

Hello Ghulam.

Thank you very much for your answer. I've tried this:

    const newStore = new bryntum.gantt.TaskStore({
      wbsMode: "auto",
      modelClass: GanttTaskModel,
      onOutdent({ source, records }) {
        console.log('OUTDENT TASKs NOT WORKING', records)
      },
      onIndent({ source, records }) {
        console.log('INDENT TASKs WORKING', records)
      }
      // onOutdent: function ({ source, records }) {
      //   console.log('OUTDENT TASKs NOT WORKING', records)
      // },
      // onIndent: function ({ source, records }) {
      //   console.log('INDENT TASKs WORKING', records)
      // }
    });

But I got the same result. For the indent event it works, but for the outdent event it does not trigger never the event.. I've tried by using the 'catchAll' event, I've seen the beforeIndent and Indent events triggered on indenting, but nothing about outdent events when outdenting the tasks (Visually and functionally it works perfectly).

Any help or more proposals are more than welcome.

Thank you very much


Post by ghulam.ghous »

Hi agarcia,

As you mentioned that it has worked for you in the examples, same goes here, I have tried it our online example and it worked. Can you please share a test case where we can reproduce this issue. Probably something wrong in your application that is causing this issue. Which version you of gantt you are using? If not latest, can you please upgrade to the latest version and try?

Regards,
Ghous


Post Reply