Hi,
I have two queries:
1) I've defined a foreign key column as such:
<e-column field='customerId' foreignKeyValue="companyName" foreignKeyField="id" :dataSource="lookups.Customers" headerText='Company Name'></e-column>
I want to define that this column is sorted using the foreignKeyValue, how can I do this?
2) When using the excel style filters with a foreign key column, I cannot get the checkboxes with the list of values to appear, when using the same row as above.
I am assigning the data that must be displayed here by myself, by passing it to the dataSource function on the dataStateChange event.
If I use a simple column, such as:
<e-column field='customerCompanyName' headerText='Company Name'></e-column>
I can do this, by doing something like:
var lookupData = await (this.dataService as DataService).fetchLookup("rich/Customers");
const data = (lookupData.body.data as Array<any>).map(x => {
return { customerCompanyName: x['companyName'] }
})
state.dataSource(data);
How can I get the checkboxes dispalyed to be a list of my fk data?
Thanks