Cellmaker image is getting cut from the top

Posted by: nilesh_nichal on 11 September 2023, 9:00 pm EST

    • Post Options:
    • Link

    Posted 11 September 2023, 9:00 pm EST - Updated 11 September 2023, 9:05 pm EST

    Hi team,

    We followed the below link to create cellmaker image. But the image is getting cut for the first cell.

    https://www.grapecity.com/wijmo/demos/Grid/CustomCells/CellMaker/Images/angular

    I’ve attached a screenshot of the same

  • Posted 12 September 2023, 2:13 pm EST

    Hello,

    To show the image above the columnHeader cell when hovered, you may increase the z-index of the image on hover to 2. This will make the image element appear above the columnHeader cells. Please refer to the below code snippet:

    .wj-flexgrid .wj-cell.cell-img:hover {
       z-index: 2 ;
        overflow: visible;
    }

    Regards

  • Posted 20 September 2023, 5:39 pm EST - Updated 20 September 2023, 5:45 pm EST

    Hi,

    Thanks for the reply. We had one more issue,

    Previously image was getting cut at the header, now it is getting cut at grid level. We want the image to pop out of the grid and be completely visible.

    We have attached the screenshot of the same. Please could you look into it.

  • Posted 21 September 2023, 10:06 pm EST

    Hello,

    Sorry, but it wouldn’t be possible due to the current design structure of FlexGrid control. The only way I could find to show the image outside the boundaries of FlexGrid is to set the overflow selector for FlexGrid and let its child elements use that overflow value by inheriting it. But this leads to a distorted grid layout.

    However, you can use Wijmo tooltip control to show the images over a tooltip when hovering over the image cells. Please refer to the sample link below:

    https://stackblitz.com/edit/angular-sypwjs?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts

    API link: https://www.grapecity.com/wijmo/api/classes/wijmo.tooltip.html

    Regards

  • Posted 7 October 2023, 8:49 pm EST

    Hi,

    Thanyou for the alternate solution. We had one more requirement. Could we open the image on right or left on hover for the cellmaker images implementation?. And while the image is getting opened on the right or left we would also want it to be visible in the grid cell in the form of thumbnail.

    Regards.

  • Posted 8 October 2023, 11:31 pm EST

    Hello,

    You can use the position property of the Tooltip control to set the position of the tooltip as per your requirement. Showing images on the tooltip will not remove the images from the cell so it will remain on the cell like thumbnails. Please refer to the API link below for more information:

    https://www.grapecity.com/wijmo/api/classes/wijmo.tooltip.html#position

    Regards

  • Posted 9 October 2023, 12:14 am EST

    Hi,

    We needed this solution for cellmaker image implementation not tool tip. This is the link of cellmaker implementation https://www.grapecity.com/wijmo/demos/Grid/CustomCells/CellMaker/Images/angular

  • Posted 9 October 2023, 4:16 pm EST

    Hi Nilesh,

    Sorry for the misunderstanding, but as discussed earlier, displaying popup images on hover would not be possible due to the current FlexGrid’s design structure.

    However, you can achieve similar results with a tooltip using a little CSS. Please refer to the sample link below demonstrating the same:

    https://stackblitz.com/edit/angular-b7asna?file=src%2Fapp%2Fapp.component.ts,src%2Fstyles.css

    You can show the tooltip image at the mouse position using the showAtMouse property of the Tooltip (as used in the above sample), or you can set a static position for the tooltip using the position property.

    Regards

  • Posted 11 October 2023, 7:28 pm EST

    Hi,

    Thanks you for the response!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels