Professional Web Applications Themes

Filtering dataGrid results - Macromedia Flex General Discussion

I have spent the day in the help files, trying to understand how I can filter a dataset. I have a dataGrid whose dataProvider is bound to an HTTPService that (for now) retrieves a dataset from an XML file. Through some other controls, I'd like to filter the display of that data in the dataGrid by column values that meet certain criteria. I'm having quite a time trying to figure out how to do that. Seems like it should be simple, as I would imagine it would be a rather common thing to do. Say my dataset contains a list ...

  1. #1

    Default Filtering dataGrid results

    I have spent the day in the help files, trying to understand how I can filter a
    dataset. I have a dataGrid whose dataProvider is bound to an HTTPService that
    (for now) retrieves a dataset from an XML file. Through some other controls,
    I'd like to filter the display of that data in the dataGrid by column values
    that meet certain criteria. I'm having quite a time trying to figure out how
    to do that. Seems like it should be simple, as I would imagine it would be a
    rather common thing to do.

    Say my dataset contains a list of names of people, and I have a control that
    allows me to select the first letter (or first few letters) of the last name,
    so that only those names that begin with that letter (or letters) appears in
    the grid. Since I have the complete dataset in memory, I don't want to send
    repeated requests to get filtered datasets - I want to do the filtering right
    there, and have it respond to what the user types in.

    Is there some way to wrap the results of the HTTPService request into an
    ICollectionView wrapper and use that as the data provider to the dataGrid so
    that I can assign a filter function to the data provider and have the effects
    of the filter parameters be reflected in the dataGrid view?

    Kwooda Guest

  2. #2

    Default Re: Filtering dataGrid results

    U can find an example of filtering below:

    [url]http://flexauthority.com/samplesIndex.cfm[/url]
    TIPLVinay Guest

Similar Threads

  1. Filtering a datagrid without using filterFunction?
    By EvolvedDSM in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: May 21st, 01:08 PM
  2. filtering a second rs with the filtered results of a first rs
    By Zachariah Crow in forum Dreamweaver AppDev
    Replies: 3
    Last Post: May 10th, 07:24 PM
  3. Filtering query results
    By DuLaus in forum Coldfusion - Getting Started
    Replies: 2
    Last Post: April 7th, 08:30 PM
  4. Filtering data in a Datagrid
    By Steven Cheng[MSFT] in forum ASP.NET Data Grid Control
    Replies: 2
    Last Post: April 1st, 02:11 PM
  5. filtering in datagrid
    By rk in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: November 6th, 05:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139