When getting results returned back to the autocomplete control that will be displayed to the User, I'd like to filter out blank lines. Lines that are essentially whitespace, of no value to the User. I'd like to filter for that on the client side rather than the server.
This is the scenario. I have an autocomplete control that gets it's values from a DB table. So for example, if the DB table has ten entries (rows essentially), and two of the rows have blanks values or empty strings, when the values are displayed in the autocomplete dropdown list, I see two empty rows? I wanted to eliminate those empty lines in the dropdown list from being displayed. Originally I thought I'd just filter those lines client side.
What I ended up doing was filtering those blank lines in the server side linq statement when getting the data with....
answered on 23 Sep 2020, 10:58 AM
Thank you for the additional details. Indeed in this scenario, you can follow the suggestion from my previous post and configure the schema.parse function.
I created a sample to demonstrate the approach. A call to a mock API would return the following JSON, where the second object has an empty value:
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.