Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Metronic Column controls and table layout causes tooltip to be see through when hovered over in the DataGrid


i have an issue with the DataGrid components from metronic

when i try to add column controls like drag feature etc i have an issue where on one of the columns im rendering a card inside of a tooltip when hovered over a cell in that column for example

its like a tooltip now when i try to add features like drag column or things like that etc my tooltip card becomes see through or transparent, now ive tried playing around and adding z indexes to tooltip and card both but it doesnt seem to work now when i remove those from the tableLayout etc in DataGrid, the tooltip behaves correctly

why is that ? what am i missing ?

heres the relevant file in my repo: https://github.com/moahnaf11/MCA-Metronic/blob/main/src/pages/archived/archived.tsx

lines 240-323 is the accessorKey for that column with the tooltip

lines 723 is the DataGrid with the props

i would appreciate some help

Thank You


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Please try to use below code with proper Portal placement:


<Tooltip>                         
<TooltipTrigger asChild>
<span className="cursor-pointer">
Test
</span>
</TooltipTrigger>
<Portal>
<TooltipContent
side="right"
sideOffset={20}
className="shadow-lg rounded-md p-0"
>
<Card className="min-w-[500px] rounded-md">
<CardHeader>
<CardHeading>
<CardTitle className="text-lg">Car Details</CardTitle>
</CardHeading>
</CardHeader>
<CardContent>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
<p>Test Test Test Test Test Test</p>
</CardContent>
</Card>
</TooltipContent>
</Portal>
</Tooltip>


Tested and worked well.

All the best!

Regards,
Sean


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(