I have created a grid which uses ejs-dropdownlist for 3 columns , when we try to filter those columns it fails and populates undefined value in the filter section. Let us know the fix required to handle the filter for Low,Medium and High columns
Hi Kiran,
Greetings from Syncfusion support.
We have validated the code sample you shared and noticed that you are utilizing the format property inside the stacked column with a value of “ ’n’ ” which is invalid. The format provided in the format property will apply to both column values and the filtered values shown in the filter menu. Since you have provided an invalid format, the Grid cannot convert the values to that format, affecting the filter functionality. Since you have used the Column Template feature to display the column values, the column values are displayed as expected because the format property does not affect the values inside the template. However, if you remove the template from the stacked column in your application, you will observe that the column values also will not be rendered because of the invalid format. To resolve this scenario, we recommend removing the format property with the value 'n' from the stacked columns. We have prepared a sample based on your code snippet with a working filter. Please find the sample below for your reference:
Sample: https://stackblitz.com/edit/angular-grid-with-stacked-headers
We also noticed that you want to perform editing operations in the Grid. To perform editing operations, it is essential to have a Primary Key column in the Grid to uniquely identify the records to be edited. We recommend setting a Primary Key column in your Grid component by setting the columns.isPrimaryKey property to true for any one of the columns with a unique value for each record. We have already explained this in our documentation, which you can find at the following link. We have also implemented the same in the provided sample above for your reference:
Editing: https://ej2.syncfusion.com/angular/documentation/grid/editing/edit
Please let us know if you have any further queries.
Regards,
Santhosh I
Thank you Santhosh . filterting is working fine now after removing the format property with the value 'n' from the stacked columns
Thanks for the update. We are glad that your issue has been resolved. Please let us know if you need anu further assistance in future.