3 Replies Latest reply on Jun 24, 2015 7:55 AM by Michal Petrov

    Builtin Sorting and Filtering is not working properly

    pradeep panda Newbie

      Hi Team,

       

      Built in sorting is not working properly when I try to use in rich:extendedDataTable even its not working in RichFaces Showcase also

      url : RichFaces Showcase

       

      It works properly when I Clicked on one column, but the problem comes when I try to click  on multiple sorting columns.

       

      Please let me know if more details are required.

       

       

      Regards,

      Pradeep

        • 1. Re: Builtin Sorting and Filtering is not working properly
          Michal Petrov Master

          Multiple sort works by a priority - sort by column A, then by column B and so on. If clicking on one column sorts the table completely then clicking on other columns will not do anything because there is nothing more to sort. (If I didn't know what was going more details would certainly be required, you didn't explain what is not working.)

          • 2. Re: Builtin Sorting and Filtering is not working properly
            pradeep panda Newbie

            Below details are my requirement

             

                 I have two fields in datatable i.e firstname and lastname. I want table data to be sorted based on users click, they may click on firstname or lastname and even they can click on both one after another.

            It works fine when i click on firstname and its not working when I do click on lastname and it just change the arrow icon. Some time when I click the same column for sorting , It works for first time and in second click it just change the arrow icon and some element . If on first click the table got sorted on ascending order , on second click (same column) it should get sort on descending order(my requirement). The same kind of issue also there in RICHFACES SHOWCASE.

            • 3. Re: Builtin Sorting and Filtering is not working properly
              Michal Petrov Master

              It does nothing because the column is already sorted. When you click on first name it sorts by first name, when you then click on last name it sorts by first name and last name. If you want it to sort only by last name then do not use multisort. If I am not understanding you correctly can you show me how you expect the table to be sorted after each click?