Datatable callbacks for sorting / filter / pagination

UI Components for JSF
Post Reply
User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

09 Feb 2011, 19:34

Hello,

I'm still missing callbacks for start / end of sort / filter / pagination http://code.google.com/p/primefaces/iss ... ail?id=810

Maybe somebody knows a solution / workaround for my problem. I have a menubar over a datatable with instant ajax selection. The menubar shows operations for selected rows like edit, delete ,... User select rows in the datable and the menubar gets updated. Well. But if he sorts or filters datatable, before selected rows can disappears and the menubar state is not fit to the result set. I want to update the menubar (to initial state e.g.) after each sort / filter / click on page operation. But how?

Thanks for any advices.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

09 Feb 2011, 23:30

I mean server-side listeners - sortListener, filterListener and corresponding onSortUpdate, onFilterUpdate. Sure, I can place some operations on row (like edit or delete) in a separate column(s). In this case I would not care about sort / filter. But if you have many operations, you have to put all commands in a toolbar / menubar. Menu items need to be activated / deactivated depending on table selection. That's my problem.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests