Skip to content

Commit 47da40b

Browse files
authored
Merge pull request #446 from syncfusion-content/888907-conflict
888907: Resolved the conflict issues
2 parents dacd9b2 + e08fed7 commit 47da40b

File tree

9 files changed

+83
-42991
lines changed

9 files changed

+83
-42991
lines changed

ej2-react-toc.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@
896896
<li><a href="/ej2-react/document-editor/dialog">Dialog</a></li>
897897
<li><a href="/ej2-react/document-editor/right-to-left">RTL</a></li>
898898
<li><a href="/ej2-react/document-editor/chart">Chart</a></li>
899+
<li><a href="/ej2-react/document-editor/content-control">Content Control</a></li>
899900
<li><a href="/ej2-react/document-editor/restrict-editing">Restrict Editing</a></li>
900901
<li><a href="/ej2-react/document-editor/spell-check">SpellCheck</a></li>
901902
<li><a href="/ej2-react/document-editor/global-local">Globalization</a></li>
@@ -2623,7 +2624,7 @@
26232624
<li><a href="https://ej2.syncfusion.com/react/documentation/api/tooltip/">API Reference</a></li>
26242625
</ul>
26252626
</li><li>
2626-
TreeGrid
2627+
<a href="/ej2-react/treegrid/overview">TreeGrid</a>
26272628
<ul>
26282629
<li>Getting Started
26292630
<ul>
@@ -2897,8 +2898,7 @@
28972898
</ul>
28982899
</li> <li>Release Notes
28992900
<ul>
2900-
<li>2024 Volume 2 - 26.*<ul><li><a href="/ej2-react/release-notes/26.1.35">26.1.35 Main Release</a></li></ul></li>
2901-
<li>2024 Volume 1 - 25.*<ul><li>Weekly Release<ul><li><a href="/ej2-react/release-notes/25.2.7">25.2.7</a></li><li><a href="/ej2-react/release-notes/25.2.6">25.2.6</a></li><li><a href="/ej2-react/release-notes/25.2.5">25.2.5</a></li><li><a href="/ej2-react/release-notes/25.2.4">25.2.4</a></li><li><a href="/ej2-react/release-notes/25.1.42">25.1.42</a></li><li><a href="/ej2-react/release-notes/25.1.41">25.1.41</a></li><li><a href="/ej2-react/release-notes/25.1.40">25.1.40</a></li><li><a href="/ej2-react/release-notes/25.1.39">25.1.39</a></li><li><a href="/ej2-react/release-notes/25.1.38">25.1.38</a></li><li><a href="/ej2-react/release-notes/25.1.37">25.1.37</a></li></ul></li><li><a href="/ej2-react/release-notes/25.2.3">25.2.3 Service Pack Release</a></li><li><a href="/ej2-react/release-notes/25.1.35">25.1.35 Main Release</a></li></ul></li>
2901+
<li>2024 Volume 2 - 26.*<ul><li><a href="/ej2-react/release-notes/26.1.35">26.1.35 Main Release</a></li></ul></li><li>2024 Volume 1 - 25.*<ul><li>Weekly Release<ul><li><a href="/ej2-react/release-notes/25.2.7">25.2.7</a></li><li><a href="/ej2-react/release-notes/25.2.6">25.2.6</a></li><li><a href="/ej2-react/release-notes/25.2.5">25.2.5</a></li><li><a href="/ej2-react/release-notes/25.2.4">25.2.4</a></li><li><a href="/ej2-react/release-notes/25.1.42">25.1.42</a></li><li><a href="/ej2-react/release-notes/25.1.41">25.1.41</a></li><li><a href="/ej2-react/release-notes/25.1.40">25.1.40</a></li><li><a href="/ej2-react/release-notes/25.1.39">25.1.39</a></li><li><a href="/ej2-react/release-notes/25.1.38">25.1.38</a></li><li><a href="/ej2-react/release-notes/25.1.37">25.1.37</a></li></ul></li><li><a href="/ej2-react/release-notes/25.2.3">25.2.3 Service Pack Release</a></li><li><a href="/ej2-react/release-notes/25.1.35">25.1.35 Main Release</a></li></ul></li>
29022902
<li>2023 Volume 4 - 24.*<ul><li>Weekly Release<ul><li><a href="/ej2-react/release-notes/24.2.9">24.2.9</a></li><li><a href="/ej2-react/release-notes/24.2.8">24.2.8</a></li><li><a href="/ej2-react/release-notes/24.2.7">24.2.7</a></li><li><a href="/ej2-react/release-notes/24.2.6">24.2.6</a></li><li><a href="/ej2-react/release-notes/24.2.5">24.2.5</a></li><li><a href="/ej2-react/release-notes/24.2.4">24.2.4</a></li><li><a href="/ej2-react/release-notes/24.1.47">24.1.47</a></li><li><a href="/ej2-react/release-notes/24.1.46">24.1.46</a></li><li><a href="/ej2-react/release-notes/24.1.45">24.1.45</a></li><li><a href="/ej2-react/release-notes/24.1.44">24.1.44</a></li><li><a href="/ej2-react/release-notes/24.1.43">24.1.43</a></li></ul></li><li><a href="/ej2-react/release-notes/24.2.3">24.2.3 Service Pack Release</a></li><li><a href="/ej2-react/release-notes/24.1.41">24.1.41 Main Release</a></li></ul></li>
29032903
<li>2023 Volume 3 - 23.*<ul><li> Weekly Release<ul><li><a href="/ej2-react/release-notes/23.2.7">23.2.7</a></li><li><a href="/ej2-react/release-notes/23.2.6">23.2.6</a></li><li><a href="/ej2-react/release-notes/23.2.5">23.2.5</a></li><li><a href="/ej2-react/release-notes/23.1.44">23.1.44</a></li><li><a href="/ej2-react/release-notes/23.1.43">23.1.43</a></li><li><a href="/ej2-react/release-notes/23.1.42">23.1.42</a></li><li><a href="/ej2-react/release-notes/23.1.41">23.1.41</a></li><li><a href="/ej2-react/release-notes/23.1.40">23.1.40</a></li><li><a href="/ej2-react/release-notes/23.1.39">23.1.39</a></li><li><a href="/ej2-react/release-notes/23.1.38">23.1.38</a></li></ul></li><li><a href="/ej2-react/release-notes/23.2.4">23.2.4 Service Pack Release</a></li><li><a href="/ej2-react/release-notes/23.1.36">23.1.36 Main Release</a></li></ul></li>
29042904
<li>2023 Volume 2 - 22.*

ej2-react/code-snippet/pivot-table/getting-started-cs1/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs2/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs3/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs4/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs5/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs6/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/code-snippet/pivot-table/getting-started-cs7/app/datasource.jsx

Lines changed: 0 additions & 6141 deletions
Large diffs are not rendered by default.

ej2-react/grid/connecting-to-adaptors/odatav4-adaptor.md

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,4 +544,83 @@ public IActionResult Delete(int key)
544544
}
545545
```
546546

547-
![ODataV4Adaptor-Delete-record](../images/odatav4-adaptor-delete-record.png)
547+
![ODataV4Adaptor-Delete-record](../images/odatav4-adaptor-delete-record.png)
548+
549+
## Odata with custom url
550+
551+
The Syncfusion ODataV4 adaptor extends support for calling customized URLs to accommodate data retrieval and CRUD actions as per your application's requirements. However, when utilizing a custom URL with the ODataV4 adaptor, it's essential to modify the routing configurations in your application's route configuration file to align with your custom URL. You can invoke the custom URL by the following methods in the Datamanager
552+
553+
**Configuring Custom URLs**
554+
555+
To work with custom URLs for CRUD operations in the Syncfusion Grid, you can use the following properties:
556+
557+
* insertUrl: Specifies the custom URL for inserting new records.
558+
* removeUrl: Specifies the custom URL for deleting records.
559+
* updateUrl: Specifies the custom URL for updating records.
560+
* batchUrl: Specifies the custom URL for batch editing operations.
561+
562+
> Ensure that the routing configurations on the server-side are properly updated to handle these custom URLs.
563+
564+
The following code example describes the above behavior.
565+
566+
{% tabs %}
567+
{% highlight ts tabtitle="App.tsx" %}
568+
import { ColumnDirective, ColumnsDirective, GridComponent, ToolbarItems, EditSettingsModel, Toolbar, Edit, Inject } from '@syncfusion/ej2-react-grids';
569+
import { DataManager, ODataV4Adaptor } from '@syncfusion/ej2-data';
570+
571+
function App() {
572+
const data = new DataManager({
573+
url: 'https://localhost:xxxx/odata/Orders', // xxxx denotes port number
574+
updateUrl: 'https://localhost:xxxx/odata/Orders/Update', // custom URL to update the record
575+
insertUrl: 'https://localhost:xxxx/odata/Orders/Insert', // custom URL to insert new record
576+
removeUrl: 'https://localhost:xxxx/odata/Orders/Delete', // custom URL to delete the record
577+
adaptor: new ODataV4Adaptor()
578+
});
579+
const editSettings: EditSettingsModel = { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Normal' };
580+
const toolbar: ToolbarItems[] = ['Add', 'Edit', 'Delete', 'Update', 'Cancel', 'Search'];
581+
const orderIDRules: object = {required: true};
582+
const customerIDRules: object = {required: true, minLength: 3};
583+
return <GridComponent dataSource={data} editSettings={editSettings} toolbar={toolbar} height={320}>
584+
<ColumnsDirective>
585+
<ColumnDirective field='OrderID' headerText='Order ID' isPrimaryKey={true} width='150' textAlign='Right' validationRules={orderIDRules}></ColumnDirective>
586+
<ColumnDirective field='CustomerID' headerText='Customer ID' width='150' validationRules={customerIDRules}></ColumnDirective>
587+
<ColumnDirective field='EmployeeID' headerText='Employee ID' width='150'/>
588+
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='150'/>
589+
</ColumnsDirective>
590+
<Inject services={[Toolbar,Edit]} />
591+
</GridComponent>
592+
};
593+
export default App;
594+
{% endhighlight %}
595+
{% endtabs %}
596+
597+
For batch editing, you can specify a custom batch URL as follows:
598+
599+
{% tabs %}
600+
{% highlight ts tabtitle="App.tsx" %}
601+
import { ColumnDirective, ColumnsDirective, GridComponent, ToolbarItems, EditSettingsModel, Toolbar, Edit, Inject } from '@syncfusion/ej2-react-grids';
602+
import { DataManager, ODataV4Adaptor } from '@syncfusion/ej2-data';
603+
604+
function App() {
605+
const data = new DataManager({
606+
url: 'https://localhost:xxxx/odata/Orders', // xxxx denotes port number
607+
BatchUrl: 'https://localhost:xxxx/odata/Orders/BatchUpdate', // custom URL for batch update
608+
adaptor: new ODataV4Adaptor()
609+
});
610+
const editSettings: EditSettingsModel = { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Batch' };
611+
const toolbar: ToolbarItems[] = ['Add', 'Edit', 'Delete', 'Update', 'Cancel', 'Search'];
612+
const orderIDRules: object = {required: true};
613+
const customerIDRules: object = {required: true, minLength: 3};
614+
return <GridComponent dataSource={data} editSettings={editSettings} toolbar={toolbar} height={320}>
615+
<ColumnsDirective>
616+
<ColumnDirective field='OrderID' headerText='Order ID' isPrimaryKey={true} width='150' textAlign='Right' validationRules={orderIDRules}></ColumnDirective>
617+
<ColumnDirective field='CustomerID' headerText='Customer ID' width='150' validationRules={customerIDRules}></ColumnDirective>
618+
<ColumnDirective field='EmployeeID' headerText='Employee ID' width='150'/>
619+
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='150'/>
620+
</ColumnsDirective>
621+
<Inject services={[Toolbar,Edit]} />
622+
</GridComponent>
623+
};
624+
export default App;
625+
{% endhighlight %}
626+
{% endtabs %}

0 commit comments

Comments
 (0)