Hi
Am using the below code to get the user selected value from combo and calling sort
{
type: "combo",
label: "Sort By",
editable: false,
width: "20em",
displayField: "name",
value: 0,
store: {
data: [
{
id: 0,
name: "-Select-",
},
{
id: 1,
name: "Name",
},
{
id: 2,
name: "Feature",
}
],
},
listeners: {
select(event) {
console.log(event.record.name.toLowerCase());
this.gantt.taskStore.sort({ field : event.record.name.toLowerCase(), ascending : false })
},
}
}
I'm getting
"Uncaught TypeError: Cannot read properties of undefined (reading 'taskStore')"