- Home
- Forum
- JavaScript - EJ 2
- Bootstrap Dropdown is hidden behind rows
Bootstrap Dropdown is hidden behind rows
Hi,
I have been using Syncfusion JS Grid component, and it has been working great so far.. i have added column template to render bootstrap dropdown and it is not being rendered properly. Dropdown menu is behind the grid row. Select component is rendered properly but bootstrap dropdown menu is behind the row.
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
BS
Balaji Sekar
Syncfusion Team
February 8, 2022 03:00 PM UTC
Hi Haseeb,
Greetings from syncfusion support
We have analyzed your query and we could see that you are facing the problem with dropdown popup. We checked this query in our end and achieved the dropdownlist item populating on wrong position while click on Bootstrap dropdown which is rendered in Grid row using column template. Please refer the below code example and sample for more information.
|
[Index.cshtml]
<script type="text/x-jsrender" id="actionTemplate">
<div class="btn-group" style="position:relative;">
<div class="btn-group" style="display: inline-block; margin-left:5px;">
<button type="button" class="btn btn-success">Actions</button>
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" style="z-index:99999;position:absolute;" role="menu">
<li><button id="buttonItems">Associer des articles</button></li>
<li><button id="buttonCreateItemone">Créer un article</button></li>
<li><button id="buttonCreateItemtwo">Créer un article</button></li>
<li><button id="buttonCreateItemtwo">Créer un article</button></li>
</ul>
</div>
</div>
</script>
<style>
.e-grid .e-rowcell.e-templatecell {
overflow: visible !important;
}
.e-grid .e-gridcontent {
overflow: visible !important;
}
.e-grid .e-gridcontent .e-content {
overflow: visible !important;
}
</style> |
Screenshot:
Regards,
Balaji Sekar.
Marked as answer
HA
Haseeb
February 8, 2022 11:21 PM UTC
Thanks, it has solved the issue.
VN
Vignesh Natarajan
Syncfusion Team
February 9, 2022 05:50 AM UTC
Hi Haseeb,
Thanks for the update.
We are glad to hear that you have resolved your query using our solution.
Please get back to us if you have further queries
Regards,
Vignesh Natarajan
SIGN IN To post a reply.