-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIndex.cshtml
More file actions
47 lines (40 loc) · 1.29 KB
/
Index.cshtml
File metadata and controls
47 lines (40 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@{
ViewBag.Title = "Home Page";
}
<script>
function OnCommandExecuted(s, e) {
var command = e.item.name;
Spreadsheet.PerformCallback({ customCommand: command })
}
</script>
@Html.DevExpress().Ribbon(settings => {
settings.Name = "Ribbon";
settings.ShowFileTab = false;
settings.ShowTabs = false;
settings.OneLineMode = true;
settings.ClientSideEvents.CommandExecuted = "OnCommandExecuted";
var group = settings.Tabs.Add("Home").Groups.Add("Group 0");
group.Items.Add(MVCxRibbonItemType.ButtonItem, i => {
i.Text = "Apply formatting";
i.Name = "applyFormatting";
((RibbonButtonItem)i).LargeImage.IconID = IconID.ActionsNew32x32;
});
group.Items.Add(MVCxRibbonItemType.ButtonItem, i => {
i.Text = "Insert link";
i.Name = "insertLink";
i.Size = RibbonItemSize.Small;
});
group.Items.Add(MVCxRibbonItemType.ButtonItem, i => {
i.Text = "Draw Borders";
i.Name = "drawBorders";
i.Size = RibbonItemSize.Small;
});
group.Items.Add(MVCxRibbonItemType.ButtonItem, i => {
i.Text = "Show total";
i.Name = "showTotal";
i.Size = RibbonItemSize.Small;
});
}).GetHtml()
@using (Html.BeginForm()) {
@Html.Action("SpreadsheetPartial")
}