Our state of the art Gantt chart


Post by jean-francois »

Hello,

I apply this filter in my Gantt : taskStore.filterBy(task => mycondition)

The filter work well and no data is display. But there is no message which appears (eg: "no record to display") like the advandced example.

How can I fixed this please ?

seem's th css class b-grid-empty which not generate

Post by mats »

Can you please upload your code in a runnable test case so we can see what's going on?

Post by jean-francois »

Hello,

I can't copy full code from my enterprise, but code seem's like that :
const config = {
    project: new ProjectModel({
      calendar: 'general',
      ...createData(props),
    }),
    columns: props.columns,    
  height: 500,
  readOnly: true,
  subGridConfigs: {
    normal: {
      collapsed: true,
    },
    locked: {
      flex: 1,
    },
  },
  columnLines: false,,
    userId: props.userId,
  }
ganttRef.current = new Gantt({
      ...config,
      appendTo: elementRef.current,
    })
    ganttRef.current.taskStore.filterBy(task => task.userId && task.userId === config.userId)

Post Reply