PDA

View Full Version : filter the search in the drop down control



HemantPagare
10 Apr 2009, 5:47 AM
I want to parse the filter search in the drop down control. My control list contains emaild id with displayname from drop down in following format,
e.g. "Abc Xyz" <[email protected]>
But to show in this format i need to encode it.So it becomes
"Abc Xyz" &lt;[email protected]&gt;

I have overriden the doQuery to customize this search for display name as well as email id.In doQuery i used RegEx object as folllows

var qr = new RegExp('\\b' + q , "i");
this.store.filter(this.displayField, qr);

As the store has encoded values it gives all the result when i press any one of the following characters "g,t,l,;"

Here i just want a regex expression that will ignore the strings &it; and &gt; when we in the doquery method and will satisfy above requirement.

HemantPagare
12 Apr 2009, 9:42 PM
can anybody will solve this problem....?:((