Skip to content

Commit dd001bd

Browse files
Merge branch 'hotfix/hotfix-v26.1.35' into EJ2-895411-hotfix
2 parents 94d3902 + 6d5c9da commit dd001bd

File tree

81 files changed

+1403
-498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1403
-498
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Essential Studio for ##Platform_Name## Weekly Release Release Notes
3+
description: Essential Studio for ##Platform_Name## Weekly Release Release Notes
4+
platform: ej2-asp-core-mvc
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for ##Platform_Name## Release Notes
9+
10+
{% include release-info.html date="July 09, 2024" version="v26.1.41" %}
11+
12+
{% directory path: _includes/release-notes/v26.1.41 %}
13+
14+
{% include {{file.url}} %}
15+
16+
{% enddirectory %}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Essential Studio for ##Platform_Name## Weekly Release Release Notes
3+
description: Essential Studio for ##Platform_Name## Weekly Release Release Notes
4+
platform: ej2-asp-core-mvc
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for ##Platform_Name## Release Notes
9+
10+
{% include release-info.html date="July 16, 2024" version="v26.1.42" %}
11+
12+
{% directory path: _includes/release-notes/v26.1.42 %}
13+
14+
{% include {{file.url}} %}
15+
16+
{% enddirectory %}

ej2-asp-core-mvc/auto-complete/virtual-scroll.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,35 @@ public class BindingRecord
105105
{% endtabs %}
106106
{% endif %}
107107

108+
## Customizing items count in virtualization
109+
110+
When the `enableVirtualization` property is enabled, the `take` property provided by the user within the Query parameter at the initial state or during the `actionBegin` event will be considered. Internally, it calculates the items that fit onto the current page (i.e., probably twice the amount of the popup's height). If the user-provided take value is less than the minimum number of items that fit into the popup, the user-provided take value will not be considered.
111+
112+
The following sample shows the example for Customizing items count in virtualization.
113+
114+
{% if page.publishingplatform == "aspnet-core" %}
115+
116+
{% tabs %}
117+
{% highlight cshtml tabtitle="CSHTML" %}
118+
{% include code-snippet/autocomplete/virtual-scroll-items/tagHelper %}
119+
{% endhighlight %}
120+
{% highlight c# tabtitle="virtualscroll.cs" %}
121+
{% include code-snippet/autocomplete/virtual-scroll-items/virtualscroll.cs %}
122+
{% endhighlight %}
123+
{% endtabs %}
124+
125+
{% elsif page.publishingplatform == "aspnet-mvc" %}
126+
127+
{% tabs %}
128+
{% highlight razor tabtitle="CSHTML" %}
129+
{% include code-snippet/autocomplete/virtual-scroll-items/razor %}
130+
{% endhighlight %}
131+
{% highlight c# tabtitle="virtualscroll.cs" %}
132+
{% include code-snippet/autocomplete/virtual-scroll-items/virtualscroll.cs %}
133+
{% endhighlight %}
134+
{% endtabs %}
135+
{% endif %}
136+
108137
## Grouping
109138

110139
The AutoComplete component supports grouping with Virtualization. It allows you to organize elements into groups based on different categories. Each item in the list can be classified using the [groupBy](https://help.syncfusion.com/cr/cref_files/aspnetcore-js2/Syncfusion.EJ2~Syncfusion.EJ2.DropDowns.AutoCompleteFieldSettings~GroupBy.html) field in the data table. After grouping, virtualization works similarly to local data binding, providing a seamless user experience. When the data source is bound to remote data, an initial request is made to retrieve all data for the purpose of grouping. Subsequently, the grouped data works in the same way as local data binding virtualization, enhancing performance and responsiveness.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@Html.EJS().AutoComplete("records").Placeholder("Select a item").PopupHeight("200px").DataSource((IEnumerable<object>)ViewBag.data).EnableVirtualization(true).Fields(new Syncfusion.EJ2.DropDowns.AutoCompleteFieldSettings { Value = "Text" }).ActionBegin("onbegin").Query("new ej.data.Query().take(40)").Render()
2+
3+
<script>
4+
function onbegin(e) {
5+
e.query = new ej.data.Query().take(45);
6+
}
7+
</script>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
6+
namespace WebApplication1.Models
7+
{
8+
public class Record
9+
{
10+
public string ID { get; set; }
11+
public string Text { get; set; }
12+
public List<Record> RecordList { set; get; }
13+
public List<Record> RecordModelList()
14+
{
15+
return Enumerable.Range(1, 150).Select(i => new Record()
16+
{
17+
ID = i.ToString(),
18+
Text = "Item " + i,
19+
}).ToList();
20+
}
21+
}
22+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="control-wrapper">
2+
<div id="default" style='padding-top:75px;'>
3+
<ejs-autocomplete id="records" dataSource="@ViewBag.data" query="new ej.data.Query().take(40)" actionBegin="onbegin" placeholder="Select a item" allowFiltering="false" enableVirtualization="true" popupHeight="200px">
4+
<e-autocomplete-fields value="Text"></e-autocomplete-fields>
5+
</ejs-autocomplete>
6+
</div>
7+
</div>
8+
9+
<script>
10+
function onbegin(e) {
11+
e.query = new ej.data.Query().take(45);
12+
}
13+
</script>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using WebApplication1.Models;
7+
8+
namespace WebApplication1.Controllers
9+
{
10+
public class MultiSelectController : Controller
11+
{
12+
public ActionResult virtualscroll()
13+
{
14+
ViewBag.data = new Record().RecordModelList();
15+
return View();
16+
}
17+
}
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@Html.EJS().ComboBox("records").Placeholder("Select a item").PopupHeight("200px").DataSource((IEnumerable<object>)ViewBag.data).EnableVirtualization(true).AllowFiltering(false).Fields(new Syncfusion.EJ2.DropDowns.ComboBoxFieldSettings { Value = "ID", Text="Text" }).ActionBegin("onbegin").Query("new ej.data.Query().take(40)").Render()
2+
3+
<script>
4+
function onbegin(e) {
5+
e.query = new ej.data.Query().take(45);
6+
}
7+
</script>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
6+
namespace WebApplication1.Models
7+
{
8+
public class Record
9+
{
10+
public string ID { get; set; }
11+
public string Text { get; set; }
12+
public List<Record> RecordList { set; get; }
13+
public List<Record> RecordModelList()
14+
{
15+
return Enumerable.Range(1, 150).Select(i => new Record()
16+
{
17+
ID = i.ToString(),
18+
Text = "Item " + i,
19+
}).ToList();
20+
}
21+
}
22+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="control-wrapper">
2+
<div id="default" style='padding-top:75px;'>
3+
<ejs-combobox id="records" dataSource="@ViewBag.data" query="new ej.data.Query().take(40)" actionBegin="onbegin" placeholder="Select a item" allowFiltering="false" enableVirtualization="true" popupHeight="200px">
4+
<e-combobox-fields value="ID" text="Text"></e-combobox-fields>
5+
</ejs-combobox>
6+
</div>
7+
</div>
8+
9+
<script>
10+
function onbegin(e) {
11+
e.query = new ej.data.Query().take(45);
12+
}
13+
</script>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using WebApplication1.Models;
7+
8+
namespace WebApplication1.Controllers
9+
{
10+
public class MultiSelectController : Controller
11+
{
12+
public ActionResult virtualscroll()
13+
{
14+
ViewBag.data = new Record().RecordModelList();
15+
return View();
16+
}
17+
}
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@Html.EJS().DropDownList("records").Placeholder("Select a item").PopupHeight("200px").DataSource((IEnumerable<object>)ViewBag.data).EnableVirtualization(true).AllowFiltering(false).Fields(new Syncfusion.EJ2.DropDowns.DropDownListFieldSettings { Value = "ID", Text="Text" }).ActionBegin("onbegin").Query("new ej.data.Query().take(40)").Render()
2+
3+
<script>
4+
function onbegin(e) {
5+
e.query = new ej.data.Query().take(45);
6+
}
7+
</script>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
6+
namespace WebApplication1.Models
7+
{
8+
public class Record
9+
{
10+
public string ID { get; set; }
11+
public string Text { get; set; }
12+
public List<Record> RecordList { set; get; }
13+
public List<Record> RecordModelList()
14+
{
15+
return Enumerable.Range(1, 150).Select(i => new Record()
16+
{
17+
ID = i.ToString(),
18+
Text = "Item " + i,
19+
}).ToList();
20+
}
21+
}
22+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="control-wrapper">
2+
<div id="default" style='padding-top:75px;'>
3+
<ejs-dropdownlist id="records" dataSource="@ViewBag.data" query="new ej.data.Query().take(40)" actionBegin="onbegin" placeholder="Select a item" allowFiltering="false" enableVirtualization="true" popupHeight="200px">
4+
<e-dropdownlist-fields value="ID" text="Text"></e-dropdownlist-fields>
5+
</ejs-dropdownlist>
6+
</div>
7+
</div>
8+
9+
<script>
10+
function onbegin(e) {
11+
e.query = new ej.data.Query().take(45);
12+
}
13+
</script>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using WebApplication1.Models;
7+
8+
namespace WebApplication1.Controllers
9+
{
10+
public class MultiSelectController : Controller
11+
{
12+
public ActionResult virtualscroll()
13+
{
14+
ViewBag.data = new Record().RecordModelList();
15+
return View();
16+
}
17+
}
18+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@Html.EJS().MultiSelect("records").Placeholder("Select a item").PopupHeight("200px").DataSource((IEnumerable<object>)ViewBag.data).EnableVirtualization(true).AllowFiltering(false).Fields(new Syncfusion.EJ2.DropDowns.MultiSelectFieldSettings { Value = "ID", Text="Text" }).ActionBegin("onbegin").Query("new ej.data.Query().take(20)").Render()
1+
@Html.EJS().MultiSelect("records").Placeholder("Select a item").PopupHeight("200px").DataSource((IEnumerable<object>)ViewBag.data).EnableVirtualization(true).AllowFiltering(false).Fields(new Syncfusion.EJ2.DropDowns.MultiSelectFieldSettings { Value = "ID", Text="Text" }).ActionBegin("onbegin").Query("new ej.data.Query().take(40)").Render()
22

33
<script>
44
function onbegin(e) {
5-
e.query = new ej.data.Query().take(25);
5+
e.query = new ej.data.Query().take(45);
66
}
77
</script>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div class="control-wrapper">
22
<div id="default" style='padding-top:75px;'>
3-
<ejs-multiselect id="records" dataSource="@ViewBag.data" query="new ej.data.Query().take(20)" actionBegin="onbegin" placeholder="Select a item" allowFiltering="false" enableVirtualization="true" popupHeight="200px">
3+
<ejs-multiselect id="records" dataSource="@ViewBag.data" query="new ej.data.Query().take(40)" actionBegin="onbegin" placeholder="Select a item" allowFiltering="false" enableVirtualization="true" popupHeight="200px">
44
<e-multiselect-fields value="ID" text="Text"></e-multiselect-fields>
55
</ejs-multiselect>
66
</div>
77
</div>
88

99
<script>
1010
function onbegin(e) {
11-
e.query = new ej.data.Query().take(25);
11+
e.query = new ej.data.Query().take(45);
1212
}
1313
</script>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@Html.EJS().MultiSelect("records").Placeholder("Select a item").PopupHeight("200px").DataSource(obj =>obj.Url("https://services.syncfusion.com/aspnet/production/api/Orders").CrossDomain(true).Adaptor("WebApiAdaptor")).EnableVirtualization(true).AllowFiltering(true).Fields(new Syncfusion.EJ2.DropDowns.MultiSelectFieldSettings { Text = "OrderID", Value = "OrderID" }).Render()
1+
@Html.EJS().MultiSelect("records").Placeholder("Select a item").PopupHeight("200px").DataSource(obj =>obj.Url("https://services.syncfusion.com/aspnet/production/api/VirtualDropdownData").CrossDomain(true).Adaptor("UrlAdaptor")).EnableVirtualization(true).AllowFiltering(true).Fields(new Syncfusion.EJ2.DropDowns.MultiSelectFieldSettings { Text = "OrderID", Value = "OrderID" }).Render()

ej2-asp-core-mvc/code-snippet/multiselect/virtual-scroll-remote/tagHelper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="control-wrapper">
22
<div id="default" style='padding-top:75px;'>
33
<ejs-multiselect id="records" placeholder="Select a item" allowFiltering="true" enableVirtualization="true" popupHeight="200px">
4-
<e-data-manager adaptor="WebApiAdaptor" url="https://services.syncfusion.com/aspnet/production/api/Orders" crossDomain="true"></e-data-manager>
4+
<e-data-manager adaptor="UrlAdaptor" url="https://services.syncfusion.com/aspnet/production/api/VirtualDropdownData" crossDomain="true"></e-data-manager>
55
<e-multiselect-fields text="OrderID" value="OrderID"></e-multiselect-fields>
66
</ejs-multiselect>
77
</div>

ej2-asp-core-mvc/code-snippet/pivot-table/getting-start-mvc/fieldlist/razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@model List<PivotTableSample.Controllers.PivotData>
22

3-
@Html.EJS().PivotView("PivotView").Height("300").DataSourceSettings(dataSource => dataSource.DataSource((IEnumerable<object>)ViewBag.DataSource).ExpandAll(false).EnableSorting(true).AllowLabelFilter(true).AllowValueFilter(true)
3+
@Html.EJS().PivotView("PivotView").Height("300").DataSourceSettings(dataSource => dataSource.DataSource((IEnumerable<object>)Model).ExpandAll(false).EnableSorting(true).AllowLabelFilter(true).AllowValueFilter(true)
44
.FormatSettings(formatsettings =>
55
{
66
formatsettings.Name("Amount").Format("C0").MaximumSignificantDigits(10).MinimumSignificantDigits(1).UseGrouping(true).Add();

0 commit comments

Comments
 (0)