Filtering a datagrid without using filterFunction?

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Filtering a datagrid without using filterFunction?

    Hello, I'm looking for a way to filter a datagrid without applying a
    filterFunction on the arrayCollection. The filter is static. I need it to
    filter out a particular column of a table that has no value, so only the items
    that do have a value in that column will be displayed. The reason why I do not
    want to use a filterFunction on the arrayCollection is because the array would
    need to be refreshed every time I update an item and for the way I've done
    things, I am not sure how that would work.

    So is there another way to filter a dg?

    EvolvedDSM Guest

  2. Similar Questions and Discussions

    1. DataGrid, selection and filtering
      Like a lot of developers I've recently moved from Flex 2 to Flex 3. I've noticed a bit of a change in how the DataGrid/List classes deal with...
    2. 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...
    3. Filtering data in a Datagrid
      Hi, I'm viewing the thread and found that there is a duplicated one on this issue in microsoft.public.dotnet.framework.aspnet group and some...
    4. Filtering the DataGrid control Question
      Hello, I have a dataset with data in it thats stored in cache. I'm trying to take this dataset and doing a filter to output only the rows that...
    5. filtering in datagrid
      Hi, I need to include the filtering feature in datagrid just like in excel sheet where user can filter the rows based on the value selected in the...
  3. #2

    Default Re: Filtering a datagrid without using filterFunction?

    The phrasing of your question seems to provide the answer. "Is there any way
    to filter without a filterfunction" - well probably not. So to meet your needs
    you should either populate your arrayCollection using different logic, or else
    go with the filterfunction. By the way, the arraycollection has an
    eventListener built in so you can automatically detect when the contents has
    changed (using a listener) - see CollectionEvent.COLLECTION_CHANGE.

    BaliHi Guest

  4. #3

    Default Re: Filtering a datagrid without using filterFunction?

    Could you help with with implementing the addEventListener? I've checked the
    documentation for CollectionEvent, however alot of the info went right over my
    head.

    How can I write an addEventListener that will detect changes to my AC?

    EvolvedDSM Guest

Posting Permissions

  • You may not post new threads
  • You may 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