Filter does not work on the data which has columns special Characters.

1 Answer 219 Views
Data Query Filter
Ramakrishna Reddy
Top achievements
Rank 1
Ramakrishna Reddy asked on 01 Dec 2022, 01:48 PM

I am using "filterBy" function from Kendo-data-grid in my Angular app.

I have a data  where column names consists of special characters such as 'Product. Name'. I able to filter all the columns(which has names without special characters). I am not able to filter the columns(which has name with special characters).

How can i filter the columns even with specialcharactes in its names.

Example: Example

Please help me regarding this.

 

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 06 Dec 2022, 11:59 AM

Hi Ramakrishna,

The following syntax should be used if the property of the object is defined like the one in the example:

field: '["Product.Name"]'

Updated example - https://stackblitz.com/edit/angular-rkc74f-ldfeg4?file=src%2Fapp%2Fproducts.ts,src%2Fapp%2Fapp.component.ts,src%2Fmain.ts

I hope this helps.

Regards,
Yanmario
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Data Query Filter
Asked by
Ramakrishna Reddy
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or