2017-08-11 5 views
0
I am creating my own template filter in primeNg Datatable. It working 
without any issue. 
But when I use the same template on virtual scroll it is being cut buy table 
body. Not visible. I tried multiple hit and trial but no luck. 

I ajouté <template pTemplate = "body">``<template pTemplate = "header">Modèle de filtre personnalisé avec scroll virtuel dans PrimeNg non visible?

but none of them working i tried all possble CSS as well. 
Please see the plunk without virtual and with virtual scroll: 

Plunk without virtual scrollDiv visible

Plunk with virtual scrollDiv non visible

+0

oublié d'ajouter: voir la question s'il vous plaît cliquer sur l'icône du filtre dans la première coloumn. –

Répondre

0
Some how i manage to solve this issue. Using position fixed and z-index: 1 
I have added z-index because in real app it was behind the table rows. 
plunker is updated now with sol. 

<div *ngIf='showDiv' style=" width: 150px; height: 200px; 
 
         position:fixed; 
 
         z-index: 1; 
 
         border:1px solid grey; 
 
         overflow: visible; 
 
         background-color: ghostwhite;">

updated plunk travail

+0

Espérons que cela aidera quelqu'un à créer sa propre boîte de filtre personnalisée. Si quelqu'un a une meilleure solution, veuillez poster votre réponse. –