Ribbon code from View | @(Html.EJ().Ribbon("defaultRibbon") .Width("100%") .RibbonTabs(tab => { tab.Id("save").Text("SAVE/LOAD").TabGroups(tabgrp => { tabgrp.Text("Save Report / Load Report").AlignType(RibbonAlignType.Rows).Content(cnt => { cnt.ContentGroups(cntgrp => { cntgrp.Id("saveReport").Text("Save").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "saveReportModalClick" }).Add(); cntgrp.Id("loadReport").Text("Load").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "loadReportModalClick" }).Add(); }).ContentDefaults(df => df.Type(RibbonButtonType.Button).Width("50px").Height("70px")).Add(); }).Add(); }).Add(); tab.Id("format").Text("FORMAT").TabGroups(tabgrp => { tabgrp.Text("Conditional Formatting").AlignType(RibbonAlignType.Rows).Content(cnt => { cnt.ContentGroups(cntgrp => { cntgrp.Id("applyFormat").Text("Apply").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "ApplyChanges" }).Add(); cntgrp.Id("resetFormat").Text("Reset").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "Reset" }).Add(); }).ContentDefaults(df => df.Type(RibbonButtonType.Button).Width("50px").Height("70px")).Add(); }).Add(); }).Add(); tab.Id("export").Text("EXPORT").TabGroups(tabgrp => { tabgrp.Text("Export").AlignType(RibbonAlignType.Rows).Content(cnt => { cnt.ContentGroups(cntgrp => { cntgrp.Id("excelExport").Text("Excel").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "exportExcelBtnClick" }).Add(); cntgrp.Id("wordExport").Text("Word").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "exportWordBtnClick" }).Add(); cntgrp.Id("pdfExport").Text("Pdf").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "exportPdfBtnClick" }).Add(); }).ContentDefaults(df => df.Type(RibbonButtonType.Button).Width("50px").Height("70px")).Add(); }).Add(); }).Add(); tab.Id("filter").Text("FILTER").TabGroups(tabgrp => { tabgrp.Text("Select Filters").AlignType(RibbonAlignType.Rows).Content(cnt => { cnt.ContentGroups(cntgrp => { cntgrp.Id("filterData").Text("Filter By").ButtonSettings(new Syncfusion.JavaScript.Models.ButtonProperties() { ContentType = ContentType.TextOnly, Click = "fieldListModalClick" }).Add(); }).ContentDefaults(df => df.Type(RibbonButtonType.Button).Width("70px").Height("70px")).Add(); }).Add(); }).Add(); }) ) |
Modal From Layout | <div class="modal fade bootstrap-modal" id="loadReportModal" tabindex="-1" role="dialog" aria-labelledby="loadReportModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="loadReportModalLabel">Select a Report</h4> </div> <div class="modal-body"> <div> <label>LoadReport: </label> <input id="loadreport" type="text" /> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </body> </html> |
// created button to open bootstrap dialog
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#loadReportModal">
Click to Open Bootstrap dialog
</button>
<div class="modal fade bootstrap-modal" id="loadReportModal" tabindex="-1"role="dialog" aria-labelledby="loadReportModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="loadReportModalLabel">Select a Report</h4>
</div>
<div class="modal-body">
<div>
<label>LoadReport: </label>
<input id="loadreport" type="text" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
$('#loadReportModal').on('show.bs.modal', function () {
$('.e-active-content').css("z-index", "1");//set z-index value here
})
</script> |
<style>
.e-ribbon .e-active-content, .e-ribbon .e-ribbonbackstagepage{
z-index: 1; // set z-index value here
}
</style> |