How to view only selected data TextInput should appear in the DataGrid

Hello

I have a lot of data on my Datarid displayed using an ArrayCollection as a dataprovider collection.
I want to use the filtering of the features of the ArrayList.
I have a TextInput, and when her sweat gets into a text, so I want to only data related using appears only on the data grid.
I tried this, but I've hit up

It's my ArrayCollection collection

< mx:ArrayCollection id = "arraycoll" >

< mx:Object >
< mx:name > happy < / mx:name >
< mx:pass > keyboard < / mx:pass >
< / mx:Object >

< mx:Object >
Kiran < mx:name > < / mx:name >
< mx:pass > keyboard < / mx:pass >
< / mx:Object >

< mx:ArrayCollection >

It comes to my DataGrid

< mx:DataGrid dataProvider = "{arraycoll}" = XY = "199" width = "300" height = "300" "329" visible = "true" >

public void (SearchData): Sub

{

arraycoll.filterFunction = doFilter;

}

private void doFilter(item:Object):Boolean {}
var searchString:String = myTextIp. text.toLowerCase ();

Need a logic here
}

< mx:TextInput id = "myTextIp" name = "SeacrhName" change = "SearchData ()" >

For example, if a user presses Ra to TextInput so I want to display only as Ravi on to DataGrid.

Help, please.

Hello

Try this

private function doFilter(item:Object):Boolean
{
     var searchString:String = myTextIp.text.toLowerCase();
     if (item.name.search(searchString) == 0)
     return true;
          else 

     return false
}

Tags: Flex

Similar Questions

  • How to get only latest date and other columns in the table

    Hello
    Table
     
       id          name        date
      123        a             2/3/2010
      124        b            15/2/2010
      125        c             1/1/2010
      123        a             12/4/2010
      125        c             17/2/2010
    
     
    It's a table, id, name, date here is the composite key.
    I want to select id, name, and date so that date (e.g., 123 date 04/12/2010 be selected for the id) is selected for each id and each id and name should be selected once.
    So, what will be its application?
    Thank you
    select
       id,
       name,
       date
    from
    (
       select
          id,
          name,
          date,
          max(date) over (partition by id, name) as max_date
       from your_table
    )
    where date = max_date;
    

    Would do assuming you do not have duplicates (all 3 columns) in the table.

  • How can I choose what E-mail should appear in the "from" field by default

    I just installed Thunderbird and triing to set how I like. When I push the button create, I see one of my email address in the form 'From '. But I would like another email to shown here by default. How can I do this?

    It would be an e-mail address?

    How many accounts e-mail that you put in place? They use POP or IMAP? You do something funky like combining them in an Inbox?

    In theory, Thunderbird will use the email address associated with the folder that you are in when you write your answer. If you are in a place like local folders, then it should use the address to which the original message was sent. If you create a new message (not answer) and then she must use the address associated with the current folder, or address by default if you are in the local folders.

    In practice, it is not always choose the address you want to use, and there are many Add-ons to help with this. Watch identity selector ID and correct for examples.

  • How to view NTUSER. DAT file as to the registry without using it?

    How to view NTUSER. DAT file as to the registry without using it?

    The file is from a different Windows instalation!
    I have Win 7 but it comes from my old Windows xp.

    Hi Leonnis,

    There are many ways to read the registry file without using regedit.
    Some ways:
    RegLookup: RegLookup project is dedicated to the direct analysis of Windows NT registry files. RegLookup is distributed under the GNU GPL license and is implemented in ANSI C. RegLookup provides a C API, a Python module and command line tools to access registry data structures.
    Download here: http://projects.sentinelchicken.org/reglookup/
    RegViewer: Is GTK 2.2 based registry Windows GUI file browser. It is platform-independent for the review of the files of Windows registry from any platform. Particularly useful in forensics files Windows of * nix systems.
    Download here: http://regviewer.sourceforge.net

    RegRipper:

    RegRipper is an application of forensics software open source developed by Harlan Carvey. RegRipper, written in Perl, is a tool for extracting data from Windows registry.
    Download here: http://regviewer.sourceforge.net
    KRegedit:
    kregedit is a KDE utility for the visualization of the native Windows registry files. It is similar to the regedt32 utility that is found on most Windows platforms. Only the format of the NT (NT4/2000/XP) registry is supported.
    Paulo Breim
    Centro Brasileiro Pericia

    Help, please!

  • My ipad is disabled. How to activate ipad without data loss? I know the password

    My ipad is disabled. How to activate ipad without data loss? I know the password

    You can not. If you know the password, how the iPad become disabled? If the device is disabled, the content is not already available. The only way to recover the device is to restore. You can restore your last backup after that. Follow the instructions in this document support. If you have forgotten the password for your iPad, iPhone or iPod touch, or your device is disabled - Apple supports

  • How to buy only a few songs, without registering for the new service? It seems compulsory now, and I DON'T want TO.

    How to buy only a few songs, without registering for the new service? It seems compulsory now, and I DON'T want TO. Could someone tell me just for the selection of the menu where I can search for a song by keyword and buy it?

    If it's on your iPad, then go to the app Store in iTunes, you can buy music from there

    If you do not want to use Apple music then turn it off on your iPad via the settings > music > Music Show Apple 'off '.

  • Dates are not appearing in the column start and Finsh of MS Project 2010. They become W31/4, W31/5, etc. Instead of 7/31/20113. How can I fix it?

    Dates are not appearing in the column start and Finsh of MS Project 2010. They appear rather like W31/4, W31/5, etc. When it should be like this: 7/31/20113. How can I fix it? Note: Dates listed do appear correctly.

    Hello Charlie,.

    You are welcome. It is what we are trying to do... help people! Thanks for letting me know that the problem is solved. Don't forget to mark it as your response so that we can spread the knowledge more far.

    Kind regards

    BearPup

  • could you change the behavior of ff in full screen? I hate it when I move the whole page view tab bar. tab bar should slide on the page without moving

    could you change the behavior of ff in full screen? I hate it when I move the whole page view tab bar. tab bar should slide on the page without moving

    You can watch the extension auto hide:

    AutoHide: http://www.krickelkrackel.de/autohide/

  • Calendar view-only and users are unable to change the time.

    We use Windows Server 2003 R2 active directory and group policy.

    Group Policy, we blocked sytem time change but after this timetable can also test block user cannt read calander also

    pls sugget me to resolve this issure

    Calendar view-only and users are unable to change the time.

    Hi sunil77,

    Your question about changes in UAC using Group Policy on Windows Server 2003, it will be better answered by the experts in the Group Policy Forum. Please repost your question to the address provided.

  • How to check only my laptop computer use integrated or the AMD graphics card?

    How to check only my laptop computer use integrated or the AMD graphics card? Some games show me that they use the built-in map: http://img849.imageshack.us/img849/4125/98ab1c28dc9f4b51b537435.png ?

    I have no other option. I have disable Intel card in Device Manager, and it shows me that the AMD driver is not installed correctly. Thank you.

  • How can I remove an item from the death of the select icons and notifications appear in the taskbar?

    When I open "Select icons and notifications appear in the task bar" one of the things it lists is "GLBD565.tmp" which seems to be left by the installation of a software product.  The icon is not active and I doubt if it still exists, but it appears in the list.  That list is maintained and how to remove the dead of her spots?

    The entries to Customize Notifications cannot be removed selectively. You can, however, clear the set lists by using the following registry change.

    1. Click Start, type regedit in the Search box and press ENTER.

    2. Locate and then click the following registry subkey:
      Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify HKEY_CURRENT_USER
    3. In the Details pane, click the IconStreams registry entry.
    4. On the Edit menu, click delete, and then click Yes.
    5. In the Details pane, click the PastIconsStream registry entry.
    6. On the Edit menu, click delete, and then click Yes.
    7. Exit Registry Editor.
    8. Restart the Explorer.exe process. To do this, follow these steps:
    9. Press CTRL + SHIFT + ESC.
    10. On the process in the Task Manager tab, click the process explorer.exe and then double click on end process .
    11. On the file menu, click new task (run), type Explorer and click OK.
    12. Exit Task Manager.

    (c) Microsoft Corporation

    -or-

    Download and run a VBScript script that automates the steps above.
    How to delete items from the Notification area in Windows 7/Vista/XP

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • date does not appear in the message list

    For the many emails I get from various accounts date does not appear in the list of messages, only time.
    It seems that these messages were received today, in fact they are old.

    Encountered this problem on 2 different PCs, 3 different email (gmail and own server) accounts.

    What could be the cause and how to fix it?

    IF you select Ctrl U _ on one of these messages, there is a right of the line at the top of the message
    -Killed Mar 25 10:09 2014 is a message that I received today. This is the date and time Thunderbird has calculated, he received the message

    Lower on the list

    Date is: sub form Date: Monday, March 24, 2014 23:32:50-0000

    These two are of the same email.

    E-mail uses time GMT so that the message has been sent to 24 March 2014 23:32:50 GMT.

    Thunderbird uses my locale information to know that my timezone is GMT + 09:30 by result Mar 25 10:09

    If your seeing odd times instead of dates, check that the information is correct as above.

    Note that if the sender is their computer set to 1970 date then you will get mail today from them with the date of 1970. Even if they think it's in October that is what will show their mail. This is most important when dealing with people with limited computer skills. They do not appreciate that the date and time zone information are really relevant to them at all.

    A favorite of spammers is to use a date in the future, so their junk is at the top of your e-mail list until you actually do something with it.

  • How to add ActiveX controls so that they appear in the list insert ActiveX

    HR 2015, how can I add that activex dll to the list of available ActiveX controls so that the custom DLL or OCX is listed on Insert... HTML... JavaScript... ActiveX controls dialog box?   Where does get this list HR?

    In my view, that it is a list ActiveX controls that are installed on your system. Add on, install the corresponding application and it should appear in the list.

    Please note that ActiveX is outdated and not supported by modern browsers. What you are trying to add? It is probably a better way to achieve the same goal, which is supported by browsers.

  • The preview of a selected image no longer appears in the window open the file

    I have CS2 in the Windows and Mac versions.  For the most part, I use the Mac version.  On this one the preview of the selected image no longer appears on the window open the file.  He appeared, but recently ceased to appear.  This makes the image to open much more difficult.  How can I get the preview back?

    No thumbnail appears in the open dialog box or the thumbnail is black?

    Is this with any file or only those registered lately?

    Are your windows system files?

    In the open dialog box you have to display thumbnails?

    If you have recently registered their CS2 mac, you have Macintosh thumbnail checked in file management preferences?

    You use the open dialog box standard or the Version Cue one?

  • all THE applications installed should appear in the settings?

    I always assumed all installed applications will appear in the settings screen, but I recently found a few apps that is not included.

    Is this correct? For example, if I wanted to disable cellular data for an application, I guess the option would be for all applications, but some are missing, so I'm unable to change that.

    all THE applications installed should appear in the settings?

    lol adjust the settings in the applications themselves.

Maybe you are looking for

  • Windows 8.1

    I just upgraded Windows 8 to 8.1 Windows and can't get Firefox to work. It loads but does not open a Web site. Any ideas? Please? Thank you

  • Where to get coverage for Satellite P100-429

    Hello Can someone tell me where I can buy an outer cover for my laptop P100-429.I know that it is covered by the warranty and the cracking to the hinge is a defect with this model. However, it works without problem, and I use it every day.If anyone c

  • Two while loops in parallel - 2 does not run

    Hello In this simple configuration, there are 2 while loops: 1st - for installation 2nd - operation, where variable X increments The problem is: after 1st run variable X is not reset to X 0, if VI stops immediately after it starts. The reason - 2nd l

  • Difficulty the mast is a scam? I just want to know if it is reliable.

    I want to buy the difficulty the mast, but I wonder if it's a scam or not. who can tell me please.

  • Installation error 1305 Fable The Lost Chapters for Windows 7 installation.

    I bought Fable The Lost Chapters for PC on the Microsoft Store.  Support persons both Microsoft Store and support of 800 # for Microsoft, say this game is 100% compatible with Windows 7 and referred me to answers.microsoft.com for assistance.  I get