conditional rendering filter

  • 5
  • Idea
  • Updated 1 year ago
  • Under Consideration
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,674 Points 20k badge 2x thumb

Posted 3 years ago

  • 5
Photo of Zach McElrath

Zach McElrath, Employee

  • 48,984 Points 20k badge 2x thumb
Yep, totally makes sense, we've been thinking about adding this.
Photo of Rajendra Rathore

Rajendra Rathore

  • 1,480 Points 1k badge 2x thumb
Yes I agree.

We also need to rerender filters on the basis of User profile. 
Photo of Rajendra Rathore

Rajendra Rathore

  • 1,480 Points 1k badge 2x thumb
Is there any alternate solution there for conditional rendering on filters?
(Edited)
Photo of Anna Wiersema

Anna Wiersema

  • 10,890 Points 10k badge 2x thumb
I'm not sure if there are more elegant solutions but you could always make a different table for each case and use conditional rendering to only show the appropriate table for each user/case.  Additionally, if you do want to render based on profile (and you are worried about your page getting bloated with all these tables), you could consider using page assignments.
Photo of Rajendra Rathore

Rajendra Rathore

  • 1,480 Points 1k badge 2x thumb
Hi Anna,

Thanks for your replay.

But i am using that table filter for many other models( approx 5 models) for filters purpose in global filter.
So to create different table according to different profile will affect snippet for global filter.

Also i have more used approx 12+ filters on that table. So to replicate and manage such thing on multiple model will be too much complex.
 

Thanks,
Rajendra
(Edited)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Please do this!
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Any update on this?

Still 'under consideration'? or is it on the roadmap?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,674 Points 20k badge 2x thumb
As per Matt Sones above... any update on this?