Hi,
I added ngbdatepicker in ag grid cell. Unfortunately the calendar is coming inside the cell. Here is my code.
Code
Hi,
I added ngbdatepicker in ag grid cell. Unfortunately the calendar is coming inside the cell. Here is my code.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jayraj ChhayaRank #304 · 8.2K reputationPosted Jan 29, 2024, 2:39 AM EST
To render the NgbDatepicker calendar outside the Ag Grid cell, we need to modify the code structure. Here's an example of how you can achieve this:
In this example, we define a template named "datePickerTemplate" that contains the input element and the NgbDatepicker component. We then use this template in the Ag Grid column definition by setting the "cellRendererFramework" property to a custom cell renderer component called "DateCellRenderer".
The "DateCellRenderer" component will render the "datePickerTemplate" for each cell in the "Date" column. This way, the NgbDatepicker calendar will be rendered outside the cell, providing a better user experience.
manikandan rRank #3,426 · 422 reputationPosted Jan 29, 2024, 9:22 AM EST
this is not working