Hi,
my requirement is filter the records on typing in keyword in textbox.
EX:
string:Test Record
string :filter Test
string: Record1
if i type 'T' only Test Record should populate.
if i type 'R' Record1 should populate.
i tried below
string.match('T')-it will match the string having 'T'
but i need to filter -if filter search is 'T' or 'Te' or 'Tes'
Expected:string starting with 'T' or 'Te' or 'Tes' should populate (i.e Test Record not filter Test)

Ramachandran MRank #2,660 · 522 reputationPosted Dec 5, 2019, 6:30 PM EST
"Test Record",
"filter Test",
"filter Test"};
// Using foreach - loop to check
// each possible match
foreach (string s in strmatch)
{
// To check match second possibility
if (s.contains(txtPassport.Text.Trim()))
{
// Display the result
Console.WriteLine(s);
return;
}
}
VikasRank #2,017 · 717 reputationPosted Dec 5, 2019, 6:38 PM EST
Veerendra AnnigereRank #927 · 2.2K reputationPosted Dec 23, 2019, 10:47 PM EST
Check this link- https://primefaces.org/primeng/#/autocomplete