Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142434 | Feb 14,2018 09:43 PM UTC | Feb 22,2018 09:26 PM UTC | ASP.NET MVC | 11 |
![]() |
Tags: XlsIO |
//To hide context menu option based on index value.
this.XLCMenu.hideItem(ej.Spreadsheet.ContextMenu.Cell, [1, 2, 3, 8, 16, 21]);
//To show context menu option based on index value.
this.XLCMenu.showItem(ej.Spreadsheet.ContextMenu.Cell, [21]); //21 index => Format Cells
|
@(Html.EJ().Spreadsheet<object>("Spreadsheet")
.AllowDelete(false) //Disable Delete feature
//...
)
|
@(Html.EJ().Spreadsheet<object>("Spreadsheet")
.ShowRibbon(false) //To hide Ribbon
//...
)
|
@(Html.EJ().Spreadsheet<object>("Spreadsheet")
//...
.ClientSideEvents(eve => eve.LoadComplete("onLoadComplete").CellSave("onCellSave"))
)
var ddData = [{ text: "C5:C15", value: "C3:C4" } , ...];
function onLoadComplete(args) {
if (!this.isImport) {
//...
this.XLCellType.addCellTypes("A3", { 'type': ej.Spreadsheet.CustomCellType.DropDownList, 'dataSource': ddData, 'field': 'text' });
}
}
function onCellSave(args) {
if (args.selectedText && args.selectedValue) {
this.XLDragFill.autoFill({
dataRange: args.selectedValue,
fillRange: args.selectedText,
direction: ej.Spreadsheet.autoFillDirection.Down,
fillType: ej.Spreadsheet.AutoFillOptions.FillSeries,
isKeyFill: true
});
}
}
|
Can you please suggest me best options on it and if possible sample application. Also I have tried using this in a partial view and loaded the view in the parent view, but it is displaying nothing..
Is this compatible to work with partial views?
Thanks!
Rajesh
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.