diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/razor index c06269323b..7a71903783 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/aggregation/aggregation-icon/razor @@ -1,4 +1,4 @@ -@Html.EJS().PivotView("PivotView").Height(300).GroupingBarSettings(new Syncfusion.EJ2.PivotView.PivotViewGroupingBarSettings { ShowValueTypeIcon = false }).DataSourceSettings(dataSource => dataSource.DataSource((IEnumerable)ViewBag.DataSource).ShowGroupingBar(false) +@Html.EJS().PivotView("PivotView").Height(300).ShowGroupingBar(false).GroupingBarSettings(new Syncfusion.EJ2.PivotView.PivotViewGroupingBarSettings { ShowValueTypeIcon = false }).DataSourceSettings(dataSource => dataSource.DataSource((IEnumerable)ViewBag.DataSource) .Rows(rows => { rows.Name("Country").Add(); rows.Name("Products").Add(); diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs index a6bd749135..34762e1457 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/ClassicLayout.cs @@ -2,5 +2,7 @@ public ActionResult Index() { var data = GetPivotData(); ViewBag.DataSource = data; + ViewBag.drilledMembers = new string[] { "Accessories", "Bikes" }; + ViewBag.filterSettings = new string[] { "Cleaners", "Fenders" }; return View(); } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/razor index 0c185ba46d..06a9f1360e 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/classic-layout/razor @@ -1,7 +1,7 @@ @using Syncfusion.EJ2.PivotView @Html.EJS().PivotView("pivotview").Width("100%").Height("450").ShowFieldList(true).DataSourceSettings(dataSourceSettings - => dataSourceSettings.DataSource((IEnumerable)ViewBag.Data).ExpandAll(false).EnableSorting(true) + => dataSourceSettings.DataSource((IEnumerable)ViewBag.DataSource).ExpandAll(false).EnableSorting(true) .DrilledMembers(drilledmembers => { drilledmembers.Name("Product_Categories").Items(ViewBag.drilledMembers).Add(); diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/razor index aae3c5780f..8c1da20aae 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/razor @@ -27,7 +27,7 @@ }) .ConditionalFormatSettings(format => { - format.Conditions(Condition.LessThan).Measure("In_Stock").Value1(1000).Style(style => { style.BackgroundColor("#80cbc4").Color("black").FontFamily("Tahoma").FontSize("12px"); }).Add(); + format.Conditions(Condition.GreaterThan).Measure("In_Stock").Value1(1000).Style(style => { style.BackgroundColor("#80cbc4").Color("black").FontFamily("Tahoma").FontSize("12px"); }).Add(); format.Conditions(Condition.Between).Measure("Sold").Value1(500).Value2(40000).Style(style => { style.BackgroundColor("#f48fb1").Color("black").FontFamily("Tahoma").FontSize("12px"); }).Add(); }) ).AllowConditionalFormatting(true).Render() diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/tagHelper index 22787b57f2..5f5d1b06a9 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/conditional-formatting/ui/tagHelper @@ -23,7 +23,7 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/engine-populated/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/engine-populated/razor index 11203b8d32..f1638a67c2 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/engine-populated/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/data-binding/engine-populated/razor @@ -8,7 +8,7 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); - })).ShowGroupingbar(true).EnginePopulated("enginePopulated").Render() + })).ShowGroupingBar(true).EnginePopulated("enginePopulated").Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/Search-desired-field-static/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/Search-desired-field-static/tagHelper index cd265184b8..ef50ae5f90 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/Search-desired-field-static/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/Search-desired-field-static/tagHelper @@ -30,14 +30,14 @@ var pivotObj; var fieldlistObj; function onGridEnginePopulate(args) { pivotObj = document.getElementById('PivotView').ej2_instances[0]; - fieldlistObj = document.getElementById('PivotFieldList').ej2_instances[0]; + fieldlistObj = document.getElementById('Static_FieldList').ej2_instances[0]; if (fieldlistObj) { fieldlistObj.update(pivotObj); } } function onFieldListEnginePopulate(args) { pivotObj = document.getElementById('PivotView').ej2_instances[0]; - fieldlistObj = document.getElementById('PivotFieldList').ej2_instances[0]; + fieldlistObj = document.getElementById('Static_FieldList').ej2_instances[0]; fieldlistObj.updateView(pivotObj); } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/razor index 8ed269562e..1a573595bb 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/razor @@ -2,13 +2,13 @@ @Html.EJS().PivotView("PivotView").Height("300").EnableVirtualization(true).EnginePopulated("onGridEnginePopulate").Render()
-@Html.EJS().PivotFieldList("PivotFieldList").RenderMode(Mode.Fixed).DataSourceSettings(dataSource => dataSource.DataSource(data(1000)).ExpandAll(false).EnableSorting(true) +@Html.EJS().PivotFieldList("PivotFieldList").RenderMode(Mode.Fixed).DataSourceSettings(dataSource => dataSource.DataSource((IEnumerable)ViewBag.DataSource).ExpandAll(false).EnableSorting(true) .Rows(rows => { rows.Name("ProductID").Add(); }).Columns(columns => { - columns => { columns.Name("Year").Add(); + columns.Name("Year").Add(); }).Values(values => { values.Name("Price").Caption("Unit Price").Add(); @@ -20,56 +20,25 @@ width: 58%; height: 100%; } + #PivotFieldList { width: 42%; height: 100%; } + .e-PivotView { float: left; } + .e-PivotFieldList { float: right; } - .e-PivotFieldList .e-static { - width: 100% !important; - } - - \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs index 2d555a9aad..e9d38c1a74 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static-fieldlist-virtualization/virtualization.cs @@ -1,4 +1,35 @@ public ActionResult Index() { return View(); +} + +public class PivotData +{ + public string ProductID { get; set; } + public string Year { get; set; } + public double Sold { get; set; } + public double Price { get; set; } + + public static List GetPivotData(int count) + { + var result = new List(); + int dt = 0; + + for (int i = 1; i <= count; i++) + { + dt++; + string round = i.ToString().PadLeft(5, '0'); + result.Add(new PivotData + { + ProductID = "PRO-" + round, + Year = "FY " + (dt + 2013), + Price = new Random(Guid.NewGuid().GetHashCode()).Next(5000, 10001), + Sold = new Random(Guid.NewGuid().GetHashCode()).Next(10, 91), + }); + + if (dt / 4 == 1) + dt = 0; + } + return result; + } } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/razor index f0958e8154..2157ff0be2 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/razor @@ -27,14 +27,14 @@ var pivotObj; var fieldlistObj; function onGridEnginePopulate(args) { pivotObj = document.getElementById('PivotView').ej2_instances[0]; - fieldlistObj = document.getElementById('PivotFieldList').ej2_instances[0]; + fieldlistObj = document.getElementById('Static_FieldList').ej2_instances[0]; if (fieldlistObj) { fieldlistObj.update(pivotObj); } } function onFieldListEnginePopulate(args) { pivotObj = document.getElementById('PivotView').ej2_instances[0]; - fieldlistObj = document.getElementById('PivotFieldList').ej2_instances[0]; + fieldlistObj = document.getElementById('Static_FieldList').ej2_instances[0]; fieldlistObj.updateView(pivotObj); } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/tagHelper b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/tagHelper index 13f59de4a0..e3b4be5bdd 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/field-list/static/tagHelper @@ -30,14 +30,14 @@ var pivotObj; var fieldlistObj; function onGridEnginePopulate(args) { pivotObj = document.getElementById('PivotView').ej2_instances[0]; - fieldlistObj = document.getElementById('PivotFieldList').ej2_instances[0]; + fieldlistObj = document.getElementById('Static_FieldList').ej2_instances[0]; if (fieldlistObj) { fieldlistObj.update(pivotObj); } } function onFieldListEnginePopulate(args) { pivotObj = document.getElementById('PivotView').ej2_instances[0]; - fieldlistObj = document.getElementById('PivotFieldList').ej2_instances[0]; + fieldlistObj = document.getElementById('Static_FieldList').ej2_instances[0]; fieldlistObj.updateView(pivotObj); } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/label-filtering/filtering-ui/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/label-filtering/filtering-ui/razor index d205577561..c89dfa9156 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/label-filtering/filtering-ui/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/label-filtering/filtering-ui/razor @@ -8,4 +8,4 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); -})).Render() \ No newline at end of file +})).ShowFieldList(true).ShowGroupingBar(true).Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/max-node/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/max-node/razor index 80efb5f326..26b5ae83d9 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/max-node/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/max-node/razor @@ -8,4 +8,4 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); -})).MaxNodeLimitInMemberEditor(500).ShowGroupingBar(true).Render() \ No newline at end of file +})).MaxNodeLimitInMemberEditor(500).ShowGroupingBar(true).ShowFieldList(true).Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/value-filtering-ui/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/value-filtering-ui/razor index 13be9faf4e..de16eff63a 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/value-filtering-ui/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/filtering/value-filtering-ui/razor @@ -8,4 +8,4 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); -})).Render() \ No newline at end of file +})).ShowFieldList(true).Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/razor index 2f1958f33c..517258d8f2 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/field-mapping/razor @@ -3,7 +3,13 @@ .FormatSettings(formatsettings => { formatsettings.Name("Amount").Format("C0").MaximumSignificantDigits(10).MinimumSignificantDigits(1).UseGrouping(true).Add(); - }).Rows(rows => + }).FieldMapping(fields=> + { + fields.Name("Quarter").ShowSortIcon(false).Add(); + fields.Name("Products").ShowFilterIcon(false).ShowRemoveIcon(false).Add(); + fields.Name("Amount").ShowValueTypeIcon(false).Caption("Sold Amount").Add(); + }) + .Rows(rows => { rows.Name("Country").Add(); }).Columns(columns => @@ -12,9 +18,4 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); - })).FieldMapping(fields=> - { - fields.Name("Quarter").ShowSortIcon(false).Add(); - fields.Name("Products").ShowFilterIcon(false).ShowRemoveIcon(false).Add(); - fields.Name("Amount").ShowValueTypeIcon(false).Caption("Sold Amount").Add(); - }).ShowGroupingBar(true).ShowFieldList(true).Render() \ No newline at end of file + })).ShowGroupingBar(true).ShowFieldList(true).Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-drill-through/drill-through.cs b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-drill-through/drill-through.cs index 2d555a9aad..edb8b5dd77 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-drill-through/drill-through.cs +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-drill-through/drill-through.cs @@ -1,4 +1,5 @@ public ActionResult Index() { + ViewBag.filterMembers = new string[] { "[Date].[Fiscal].[Fiscal Quarter].&[2002]&[4]", "[Date].[Fiscal].[Fiscal Year].&[2005]" }; return View(); } \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-measures-position/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-measures-position/razor index e6d63ede59..a4266643e2 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-measures-position/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/olap-measures-position/razor @@ -3,7 +3,7 @@ @Html.EJS().PivotView("pivotview").Width("100%").Height("600").DataSourceSettings(dataSourceSettings => dataSourceSettings.EnableSorting(true) .Url("https://bi.syncfusion.com/olap/msmdpump.dll").Catalog("Adventure Works DW 2008 SE").Cube("Adventure Works").ProviderType(ProviderType.SSAS) .Rows(rows => { rows.Name("[Customer].[Customer Geography]").Caption("Customer Geography").Add(); }) - .Columns(columns => { columns.Name("[Product].[Product Categories]").Caption("Product Categories").Add(); columns.Name("[Measures]").Caption("Measures").Add(); }) + .Columns(columns => { columns.Name("[Measures]").Caption("Measures").Add(); columns.Name("[Product].[Product Categories]").Caption("Product Categories").Add(); }) .Values(values => { values.Name("[Measures].[Customer Count]").Caption("Customer Count").Add(); values.Name("[Measures].[Internet Sales Amount]").Caption("Internet Sales Amount").Add(); }) .Filters(filters => { filters.Name("[Date].[Fiscal]").Caption("Date Fiscal").Add(); }) .FormatSettings(formatSettings => diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/cell-selection/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/cell-selection/razor index 4bca0b0a92..e7e077895c 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/cell-selection/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/cell-selection/razor @@ -13,4 +13,4 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); -})).GridSettings(gridSettings => gridSettings.AllowSelection(true).SelectionSettings(selectionSettings => selectionSettings.CellSelectionMode("Box").Type("Multiple").Mode(SelectionMode.Both))).Render() \ No newline at end of file +})).GridSettings(gridSettings => gridSettings.AllowSelection(true).SelectionSettings(selectionSettings => selectionSettings.CellSelectionMode(PivotCellSelectionMode.Box).Type("Multiple").Mode(SelectionMode.Both))).Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/razor index 7ba8730db5..64ffc55b99 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-headercell/razor @@ -1,5 +1,7 @@ @using Syncfusion.EJ2.PivotView +@Html.EJS().Button("Excel").Content("Excel Export").IsPrimary(true).Render() + @Html.EJS().PivotView("PivotView").Height("300").DataSourceSettings(dataSourceSettings => dataSourceSettings.DataSource((IEnumerable)ViewBag.DataSource).ExpandAll(false) .FormatSettings(formatsettings => { @@ -13,9 +15,14 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); -})).GridSettings(gridSettings => gridSettings.ExcelHeaderCellInfo("excelHeaderCell")).Render() +})).AllowExcelExport(true).GridSettings(gridSettings => gridSettings.ExcelHeaderQueryCellInfo("excelHeaderCellInfo")).Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-querycell/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-querycell/razor index a15d236a4b..7f501bdd1d 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-querycell/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/grid-customization/excel-querycell/razor @@ -1,5 +1,7 @@ @using Syncfusion.EJ2.PivotView +@Html.EJS().Button("Excel").Content("Excel Export").IsPrimary(true).Render() + @Html.EJS().PivotView("PivotView").Height("300").DataSourceSettings(dataSourceSettings => dataSourceSettings.DataSource((IEnumerable)ViewBag.DataSource).ExpandAll(false) .FormatSettings(formatsettings => { @@ -13,8 +15,13 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); -})).GridSettings(gridSettings => gridSettings.ExcelQueryCellInfo("excelQueryCell")).Render() +})).AllowExcelExport(true).GridSettings(gridSettings => gridSettings.ExcelQueryCellInfo("excelQueryCell")).Render() \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/all-cells/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/all-cells/razor index 7e6a1f26a8..963b182915 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/all-cells/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/all-cells/razor @@ -11,4 +11,14 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); - })).HyperlinkSettings(hyperlinksettings => hyperlinksettings.ShowHyperlink(true)).Render() \ No newline at end of file + })).HyperlinkSettings(hyperlinksettings => hyperlinksettings.ShowHyperlink(true).CssClass("e-custom-class")).Render() + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/column-header/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/column-header/razor index cf0ea182dc..cba683c9dd 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/column-header/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/column-header/razor @@ -11,4 +11,14 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); - })).HyperlinkSettings(hyperlinksettings => hyperlinksettings.ShowColumnHeaderHyperlink(true)).Render() \ No newline at end of file + })).HyperlinkSettings(hyperlinksettings => hyperlinksettings.ShowColumnHeaderHyperlink(true).CssClass("e-custom-class")).Render() + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/conditions/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/conditions/razor index bcae1ce85a..a23016dac2 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/conditions/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/conditions/razor @@ -18,4 +18,14 @@ .ConditionalSettings(format => { format.Conditions(Syncfusion.EJ2.PivotView.Condition.Between).Measure("Sold").Value1(100).Value2(200).Add(); -})).Render() \ No newline at end of file +}).CssClass("e-custom-class")).Render() + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/event/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/event/razor index 6548126709..9d5dee5cb6 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/event/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/hyper-link/event/razor @@ -11,8 +11,18 @@ }).Values(values => { values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add(); - })).HyperLinkCellClick("hyperlink").HyperlinkSettings(hyperlinksettings => hyperlinksettings.ShowRowHeaderHyperlink(true)).Render() + })).HyperLinkCellClick("hyperlink").HyperlinkSettings(hyperlinksettings => hyperlinksettings.ShowHyperlink(true).CssClass("e-custom-class")).Render() + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/pivot-table/number-formatting/toolbar/razor b/ej2-asp-core-mvc/code-snippet/pivot-table/number-formatting/toolbar/razor index f607d2b867..825d0abc5e 100644 --- a/ej2-asp-core-mvc/code-snippet/pivot-table/number-formatting/toolbar/razor +++ b/ej2-asp-core-mvc/code-snippet/pivot-table/number-formatting/toolbar/razor @@ -13,7 +13,7 @@ { filters.Name("Product_Categories").Caption("Product Categories").Add(); })).GridSettings(new PivotViewGridSettings { ColumnWidth = 140 }).DisplayOption(new PivotViewDisplayOption { View = View.Both }).Toolbar(new List -() { "New", "Save", "SaveAs", "Rename", "Remove", "Load", "Grid", "Chart", "Export", "SubTotal", "GrandTotal", "ConditionalFormatting", "NumberFormatting" "FieldList" }).SaveReport("saveReport").LoadReport("loadReport").FetchReport("fetchReport").RenameReport("renameReport").RemoveReport("removeReport").NewReport("newReport").Render() +() { "New", "Save", "SaveAs", "Rename", "Remove", "Load", "Grid", "Chart", "Export", "SubTotal", "GrandTotal", "ConditionalFormatting", "NumberFormatting", "FieldList" }).SaveReport("saveReport").LoadReport("loadReport").FetchReport("fetchReport").RenameReport("renameReport").RemoveReport("removeReport").NewReport("newReport").Render()