BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
<div class="control">
@(Html.EJ().Spreadsheet<object>("Spreadsheet")
.ClientSideEvents(events => events.LoadComplete("loadComplete"))
)
</div>
<div class="clear-fix"></div>
<script type="text/javascript">
function loadComplete(args) {
var tabGroup = [{
alignType: ej.Ribbon.AlignType.Rows, text: "Custom Tab Group", content:
[{
groups: [{
id: "new", text: "Custom", toolTip: "Cut",
buttonSettings: {
contentType: ej.ContentType.TextAndImage,
imagePosition: ej.ImagePosition.ImageTop,
prefixIcon: "e-icon e-ssr-cut",
click: "executeAction"
}
}],
defaults: { type: ej.Ribbon.Type.Button, width: 60, height: 70 }
}]
}];
xlObj.XLRibbon.addTab("Custom Tab", tabGroup, 2); // To add the tab in the ribbon.
}
</script>
|
@(Html.EJ().Spreadsheet<object>("Spreadsheet")
.ClientSideEvents(events => events.LoadComplete("loadComplete"))
)
<script type="text/javascript">
function loadComplete(args) {
var rObj = $("#Spreadsheet_Ribbon").data('ejRibbon');
rObj.option({ selectedItemIndex: 2 }); // To set Insert Tab as active
}
</script> |