How to use a datagrid's "filters" parameter?

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

  1. #1

    Default How to use a datagrid's "filters" parameter?

    I was looking at all the parameters for a datagrid can came across "filters".
    Does anyone know how this is used? I'd really like to shed my filterFunction
    for an easier solution to filtering a datagrid.

    EvolvedDSM Guest

  2. Similar Questions and Discussions

    1. Can't launch Acrobat7 pro "There was an error while loading the plug-in 'Comments'.Bad parameter."
      Has anyone found a resolution to this problem? I ran Disk Warrior, and even reinstalled Acrobat 7 and rebooted. Same error message about failure...
    2. 2 errors: "The parameter is incorrect" and "Overlapped I/O operation is in progress."
      Hello, I am writing an ASP app which is giving me some very frustrating errors. They appear intermittently, no real pattern to them, and often...
    3. #24400 [Csd->Opn]: CRLFCRLF in the "header" parameter is being converted to CRLF
      ID: 24400 User updated by: vitali_e at mail dot ru Reported By: vitali_e at mail dot ru -Status: Closed +Status: ...
    4. #24400 [Csd]: CRLFCRLF in the "header" parameter is being converted to CRLF
      ID: 24400 Updated by: pollita@php.net Reported By: vitali_e at mail dot ru Status: Closed Bug Type: ...
    5. #24400 [Com]: CRLFCRLF in the "header" parameter is being converted to CRLF
      ID: 24400 Comment by: nagelfar at mail dot ru Reported By: vitali_e at mail dot ru Status: Closed Bug Type: ...
  3. #2

    Default Re: How to use a datagrid's "filters" parameter?

    If you click on the filters property you will find quite a detailed description..?

    i don't think filters is what you're looking for, however. it refers to graphic filters such as dropshadows etc
    Craig Grummitt Guest

  4. #3

    Default Re: How to use a datagrid's "filters" parameter?

    Craig is correct. The filters proper refers to flash.filters.* classes like
    DropShadowFilter. What you are looking for is the filterFunction. Assign to
    this property the name of a function which takes a single parameter and returns
    a Boolean. The filterFunction will be called on every record in your
    dataProvider. If it returns true then the record will be displayed.

    mydata.filterFunction = myfilter;
    mydata.refresh();
    ...
    <mx:DataGrid dataProvider="{mydata}" ... >


    peterent 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