9 Replies Latest reply on Oct 15, 2010 10:42 AM by Flex harUI

    Datagrid filters and summary

    jfb00 Level 3

      Hi all,

      I found this component for filters in datagrids

      http://www.iwobanas.com/2009/07/creating-mdatagrid-date-filter/comment-page-1/#comments

      I want to have also a column summary in my datagrid.

      Does anyone know any component up there?

      Or maybe I can add that funtionality to this component. Maybe someone can guide me on that.

      Thanks

       

      Johnny

        • 1. Re: Datagrid filters and summary
          jfb00 Level 3

          Anyone??? Any ideas???

          Nobody knows about custom components.

           

          Johnny

          • 2. Re: Datagrid filters and summary
            Flex harUI Adobe Employee

            Do you want something like the DataGrid Footer example on my blog?

            --

            Alex Harui

            Flex SDK Team

            Adobe System, Inc.

            http://blogs.adobe.com/aharui

            • 3. Re: Datagrid filters and summary
              jfb00 Level 3

              Yes, but I want to combine that with filters in the datagrid.

              The filter component that I found use ISearchable class, I went thru the component and it doesn't have the structure of a regular component.

              Do you have anything to learn hwo to do custom components?

              It's a place to get training for that?

               

              Johnny

              • 4. Re: Datagrid filters and summary
                jfb00 Level 3

                Hi Alex,

                I did something to put both component to work. In my app I got an error:

                1172: Definition com.iwobanas.controls.dataGridClasses.filterEditors:MultipleChoiceFilterEditor_inlineComp onent1 could not be found.
                1202: Access of undefined property MultipleChoiceFilterEditor_inlineComponent1 in package com.iwobanas.controls.dataGridClasses.filterEditors.

                The error point to mx component in this part:

                <mx:List id="labelList" dataProvider="{filter.labels}" width="100%"  backgroundColor="white">
                        <mx:itemRenderer>
                            <mx:Component>
                                <mx:CheckBox label="{data}"
                                             selected="{parentDocument.filter.selectedLabels.contains(data)}"
                                             change="{selected ? parentDocument.filter.selectLabel(data):parentDocument.filter.deselectLabel(data)}">
                                </mx:CheckBox>
                            </mx:Component>
                        </mx:itemRenderer>
                    </mx:List>

                when I use both in a separate app works fine. Any ideas?

                I have a test application to share.

                 

                Johnny

                • 5. Re: Datagrid filters and summary
                  Flex harUI Adobe Employee

                  Sounds like the SWC isn't in your library path

                  • 6. Re: Datagrid filters and summary
                    jfb00 Level 3

                    I don't use SWC file, All for this two custom components are in my COM folder. It's a way to sent you my test sample?

                    Well if you have some couple minutes to take a look

                    In my test app it works fine, I have the same code in my app and it shows this error only if i call the filter otherwise it doesn't show.

                    In my canvas component at the top I declare the custom component as:

                    xmlns:dgFooter="com.forestandthetrees.controls.dgFooter.*"

                    But at the time of typing it shows dgFooter and dgFooter1 ( this one pointing to another custom component that only does the summary but not filters).

                    Any other ideas?

                    Thanks!

                     

                    Johnny

                    • 7. Re: Datagrid filters and summary
                      Flex harUI Adobe Employee

                      Is the Canvas in a sub-folder such that the path

                      com.forestandthetrees.controls.dgFooter isn't valid?

                      • 8. Re: Datagrid filters and summary
                        jfb00 Level 3

                        My component is in my src root folder.

                        The component is in my subfolder com.forestandthetrees.controls.dgFoote.

                        Like I said it works in my test app.

                        Any other ideas?

                         

                        Johnnyroot.png

                        • 9. Re: Datagrid filters and summary
                          Flex harUI Adobe Employee

                          You may need to import the com.iwobanas class.