Skip to content

Commit 698c9cf

Browse files
Merge pull request #436 from Syncfusion-Content/hotfix/hotfix-v25.2.3
DOCINFRA-2341_merged_using_automation
2 parents 5728d47 + 50f54e7 commit 698c9cf

26 files changed

+1357
-18
lines changed

ej2-react-toc.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,8 +1217,10 @@
12171217
<li>Connecting to Adaptors
12181218
<ul>
12191219
<li><a href="/ej2-react/grid/connecting-to-adaptors/url-adaptor">Url Adaptor</a></li>
1220+
<li><a href="/ej2-react/grid/connecting-to-adaptors/odatav4-adaptor">ODataV4 Adaptor</a></li>
12201221
<li><a href="/ej2-react/grid/connecting-to-adaptors/webapi-adaptor">Web API Adaptor</a></li>
12211222
<li><a href="/ej2-react/grid/connecting-to-adaptors/graphql-adaptor">GraphQL Adaptor</a></li>
1223+
<li><a href="/ej2-react/grid/connecting-to-adaptors/web-method-adaptor">Web Method Adaptor</a></li>
12221224
</ul>
12231225
</li>
12241226
<li><a href="/ej2-react/grid/adaptive">Adaptive View</a></li>

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

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ namespace UrlAdaptor.Server.Controllers
137137
138138
**4. Run the Application:**
139139

140-
Run the application in Visual Studio. It will be accessible on a URL like **https://localhost:xx**.
140+
Run the application in Visual Studio. It will be accessible on a URL like **https://localhost:xxxx**.
141141

142-
After running the application, you can verify that the server-side API controller is successfully returning the order data in the URL(https://localhost:xx/api/Grid). Here **xx** denotes the port number.
142+
After running the application, you can verify that the server-side API controller is successfully returning the order data in the URL(https://localhost:xxxx/api/Grid). Here **xxxx** denotes the port number.
143143

144144
![UrlAdaptor-data](../images/url-adaptor-data.jpeg)
145145

@@ -178,7 +178,7 @@ Include the necessary CSS files in your `styles.css` file to style the Syncfusio
178178

179179
**Step 4: Adding Syncfusion component**
180180

181-
In your component file (e.g., App.ts), import `DataManager` and `UrlAdaptor` from `@syncfusion/ej2-data`. Create a `DataManager` instance specifying the URL of your API endpoint(https:localhost:xx/api/Grid) using the `url` property and set the adaptor `UrlAdaptor`.
181+
In your component file (e.g., App.ts), import `DataManager` and `UrlAdaptor` from `@syncfusion/ej2-data`. Create a `DataManager` instance specifying the URL of your API endpoint(https:localhost:xxxx/api/Grid) using the `url` property and set the adaptor `UrlAdaptor`.
182182

183183
{% tabs %}
184184
{% highlight ts tabtitle="App.tsx" %}
@@ -206,9 +206,9 @@ export default App;
206206
{% endhighlight %}
207207
{% endtabs %}
208208

209-
> Replace https://localhost:****/api/grid with the actual **URL** of your API endpoint that provides the data in a consumable format (e.g., JSON).
209+
> Replace https://localhost:xxxx/api/grid with the actual **URL** of your API endpoint that provides the data in a consumable format (e.g., JSON).
210210
211-
Run the application in Visual Studio. It will be accessible on a URL like https://localhost:xx.
211+
Run the application in Visual Studio. It will be accessible on a URL like https://localhost:xxxx.
212212

213213
> Ensure your API service is configured to handle CORS (Cross-Origin Resource Sharing) if necessary.
214214

ej2-react/grid/connecting-to-adaptors/web-method-adaptor.md

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ namespace WebApiAdaptor.Server.Controllers
124124

125125
**4. Run the Application:**
126126

127-
Run the application in Visual Studio. It will be accessible on a URL like **https://localhost:xx**.
127+
Run the application in Visual Studio. It will be accessible on a URL like **https://localhost:xxxx**.
128128

129-
After running the application, you can verify that the server-side API controller is successfully returning the order data in the URL(https://localhost:xx/api/Orders). Here **xx** denotes the port number.
129+
After running the application, you can verify that the server-side API controller is successfully returning the order data in the URL(https://localhost:xxxx/api/Orders). Here **xxxx** denotes the port number.
130130

131131
![WebApiAdaptor-data](../images/webapi-adaptor-data.png)
132132

@@ -165,7 +165,7 @@ Include the necessary CSS files in your `styles.css` file to style the Syncfusio
165165

166166
**Step 3: Adding Syncfusion component**
167167

168-
In your component file (e.g., App.ts), import `DataManager` and `WebApiAdaptor` from `@syncfusion/ej2-data`. Create a `DataManager` instance specifying the URL of your API endpoint(https:localhost:xx/api/Orders) using the `url` property and set the adaptor `WebApiAdaptor`.
168+
In your component file (e.g., App.ts), import `DataManager` and `WebApiAdaptor` from `@syncfusion/ej2-data`. Create a `DataManager` instance specifying the URL of your API endpoint(https:localhost:xxxx/api/Orders) using the `url` property and set the adaptor `WebApiAdaptor`.
169169

170170
{% tabs %}
171171
{% highlight ts tabtitle="App.tsx" %}
@@ -190,8 +190,8 @@ export default App;
190190
{% endhighlight %}
191191
{% endtabs %}
192192

193-
> Replace https://localhost:xx/api/Orders with the actual URL of your API endpoint that provides the data in a consumable format (e.g., JSON).
194-
Run the application in Visual Studio. It will be accessible on a URL like **https://localhost:xx**.
193+
> Replace https://localhost:xxxx/api/Orders with the actual URL of your API endpoint that provides the data in a consumable format (e.g., JSON).
194+
Run the application in Visual Studio. It will be accessible on a URL like **https://localhost:xxxx**.
195195

196196
> Ensure your API service is configured to handle CORS (Cross-Origin Resource Sharing) if necessary.
197197

ej2-react/grid/context-menu.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,12 @@ The following example demonstrates how to enable context menu feature in the gri
8080
## Custom context menu items
8181

8282
The Syncfusion React Grid empowers you to enhance your user experience by incorporating custom context menu items into the default context menu. These customized options enable you to tailor the context menu to meet the unique requirements of your application.
83-
84-
By adding custom context menu items, you can introduce additional actions or operations that are directly relevant to your specific use case. This flexibility allows you to create a highly personalized and efficient interaction with your grid, making it a powerful tool for data management and manipulation.
85-
86-
To add custom context menu items by defining the [contextMenuItems](https://ej2.syncfusion.com/react/documentation/api/grid/#contextmenuitems) property as a collection of [contextMenuItemModel](https://ej2.syncfusion.com/react/documentation/api/grid/contextMenuItemModel). You can also define actions for these customized items using the [contextMenuClick](https://ej2.syncfusion.com/react/documentation/api/grid/#contextmenuclick) event.
87-
83+
8884
To incorporate custom context menu items in the Syncfusion React Grid, you can achieve this by specifying the [contextMenuItems](https://ej2.syncfusion.com/react/documentation/api/grid/#contextmenuitems) property as a collection of [contextMenuItemModel](https://ej2.syncfusion.com/react/documentation/api/grid/contextMenuItemModel). This allows you to define and customize the appearance and behavior of these additional context menu items according to your requirements.
89-
90-
Furthermore, you can assign actions to these custom items by utilizing the [contextMenuClick](https://ej2.syncfusion.com/react/documentation/api/grid/#contextmenuclick) event. This event provides you with the means to handle user interactions with the custom context menu items, enabling you to execute specific actions or operations when these items are clicked.
85+
86+
Furthermore, you can assign actions to these custom items by utilizing the [contextMenuClick](https://ej2.syncfusion.com/react/documentation/api/grid/#contextmenuclick) event. This event provides you with the means to handle user interactions with the custom context menu items, enabling you to execute specific actions or operations when these items are clicked.
87+
88+
The following example demonstrates how to add custom context menu items in the Grid component.
9189

9290
The following example demonstrates how to add custom context menu items in the Grid component.
9391

@@ -114,7 +112,7 @@ The Syncfusion React Grid provides the ability to show the context menu items on
114112

115113
This can be achieved by using the [created](https://ej2.syncfusion.com/react/documentation/api/grid/#created) event and the context menu's `beforeOpen` event of the Grid.
116114

117-
By using the `onclick` event listener of the Grid, you can obtain the clicked position values through the `ngAfterViewInit` method. This method is appropriate for interacting with the Document Object Model (DOM) and performing operations that require access to the rendered elements. The obtained positions are then sent to the `open` method of the context menu within the `onclick` event of the Grid. Additionally, the default action of right-clicking to open the context menu items items is prevented by utilizing the `created` event of the Grid.
115+
By using the `onclick` event listener of the Grid, you can obtain the clicked position values through the `useEffect` method. The obtained positions are then sent to the `open` method of the context menu within the `onclick` event of the Grid. Additionally, the default action of right-clicking to open the context menu items items is prevented by utilizing the `created` event of the Grid.
118116

119117
The following example demonstrates how to show context menu on left click using `created` event.
120118

36.2 KB
Loading
Loading
Loading
Loading
Loading
Loading
45.1 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)