Skip to content

Commit 2ea7ddf

Browse files
Merge branch 'development' into 997057-frozen-column
2 parents b553ffd + 696d9aa commit 2ea7ddf

File tree

403 files changed

+9619
-5013
lines changed

Some content is hidden

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

403 files changed

+9619
-5013
lines changed

ej2-asp-core-mvc/EJ2_ASP.MVC/ai-coding-assistant/mcp-server.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,31 @@ Before you can invoke the `SyncfusionAspNetMvcAssistant` MCP server, you need to
5555
- **Arguments**: -y
5656
- **Server name**: SyncfusionAspNetMvcAssistant
5757

58-
You need to add your [Syncfusion API key](https://syncfusion.com/account/api-key) as an env parameter in the configuration file:
58+
#### API Key Configuration
5959

60-
```json
61-
"env": {
62-
"Syncfusion_API_Key": "YOUR_API_KEY"
63-
}
64-
```
60+
There are two options:
61+
62+
* **Using an API Key File (Recommended)**
63+
64+
Store your API key in a separate file and reference its path in the `Syncfusion_API_Key_Path` environment parameter. This approach is more secure as you don't expose the key directly in configuration files.
65+
66+
**Supported file formats:** `.txt` or `.key` file
67+
68+
```json
69+
"env": {
70+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH" // "D:\\syncfusion-key.txt" (or) "D:\\syncfusion-key.key"
71+
}
72+
```
73+
74+
* **Direct API Key**
75+
76+
Paste your `Syncfusion_API_Key` directly in the configuration file's environment parameter.
77+
78+
```json
79+
"env": {
80+
"Syncfusion_API_Key": "YOUR_API_KEY"
81+
}
82+
```
6583

6684
Below are setup instructions for popular MCP clients:
6785

@@ -88,6 +106,8 @@ Below are setup instructions for popular MCP clients:
88106
"@syncfusion/aspnetmvc-assistant@latest"
89107
],
90108
"env": {
109+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
110+
// or
91111
"Syncfusion_API_Key": "YOUR_API_KEY"
92112
}
93113
}
@@ -116,6 +136,8 @@ Below are setup instructions for popular MCP clients:
116136
"@syncfusion/aspnetmvc-assistant@latest"
117137
],
118138
"env": {
139+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
140+
// or
119141
"Syncfusion_API_Key": "YOUR_API_KEY"
120142
}
121143
}
@@ -142,7 +164,9 @@ To configure an MCP server for a specific workspace, you can create a `.cursor/m
142164
"@syncfusion/aspnetmvc-assistant@latest"
143165
],
144166
"env": {
145-
"Syncfusion_API_Key": "YOUR_API_KEY"
167+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
168+
// or
169+
"Syncfusion_API_Key": "YOUR_API_KEY"
146170
}
147171
}
148172
}
@@ -167,7 +191,9 @@ For more details, refer to the [Cursor documentation](https://cursor.com/docs/co
167191
"@syncfusion/aspnetmvc-assistant@latest"
168192
],
169193
"env": {
170-
"Syncfusion_API_Key": "YOUR_API_KEY"
194+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
195+
// or
196+
"Syncfusion_API_Key": "YOUR_API_KEY"
171197
}
172198
}
173199
}

ej2-asp-core-mvc/EJ2_ASP.NETCORE/ai-coding-assistant/mcp-server.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,31 @@ Before you can invoke the `SyncfusionAspNetCoreAssistant` MCP server, you need t
5555
- **Arguments**: -y
5656
- **Server name**: syncfusionAspNetCoreAssistant
5757

58-
You need to add your [Syncfusion API key](https://syncfusion.com/account/api-key) as an env parameter in the configuration file:
58+
#### API Key Configuration
5959

60-
```json
61-
"env": {
62-
"Syncfusion_API_Key": "YOUR_API_KEY"
63-
}
64-
```
60+
There are two options:
61+
62+
* **Using an API Key File (Recommended)**
63+
64+
Store your API key in a separate file and reference its path in the `Syncfusion_API_Key_Path` environment parameter. This approach is more secure as you don't expose the key directly in configuration files.
65+
66+
**Supported file formats:** `.txt` or `.key` file
67+
68+
```json
69+
"env": {
70+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH" // "D:\\syncfusion-key.txt" (or) "D:\\syncfusion-key.key"
71+
}
72+
```
73+
74+
* **Direct API Key**
75+
76+
Paste your `Syncfusion_API_Key` directly in the configuration file's environment parameter.
77+
78+
```json
79+
"env": {
80+
"Syncfusion_API_Key": "YOUR_API_KEY"
81+
}
82+
```
6583

6684
Below are setup instructions for popular MCP clients:
6785

@@ -88,6 +106,8 @@ Below are setup instructions for popular MCP clients:
88106
"@syncfusion/aspnetcore-assistant@latest"
89107
],
90108
"env": {
109+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
110+
// or
91111
"Syncfusion_API_Key": "YOUR_API_KEY"
92112
}
93113
}
@@ -116,6 +136,8 @@ Below are setup instructions for popular MCP clients:
116136
"@syncfusion/aspnetcore-assistant@latest"
117137
],
118138
"env": {
139+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
140+
// or
119141
"Syncfusion_API_Key": "YOUR_API_KEY"
120142
}
121143
}
@@ -142,7 +164,9 @@ To configure an MCP server for a specific workspace, you can create a `.cursor/m
142164
"@syncfusion/aspnetcore-assistant@latest"
143165
],
144166
"env": {
145-
"Syncfusion_API_Key": "YOUR_API_KEY"
167+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
168+
// or
169+
"Syncfusion_API_Key": "YOUR_API_KEY"
146170
}
147171
}
148172
}
@@ -167,7 +191,9 @@ For more details, refer to the [Cursor documentation](https://cursor.com/docs/co
167191
"@syncfusion/aspnetcore-assistant@latest"
168192
],
169193
"env": {
170-
"Syncfusion_API_Key": "YOUR_API_KEY"
194+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
195+
// or
196+
"Syncfusion_API_Key": "YOUR_API_KEY"
171197
}
172198
}
173199
}

ej2-asp-core-mvc/ai-assistview/EJ2_ASP.MVC/events.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,16 @@ The [AttachmentRemoved](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.
101101
{% highlight c# tabtitle="Attachment-remove.cs" %}
102102
{% include code-snippet/ai-assistview/events/attachment-remove/attachment-remove.cs %}
103103
{% endhighlight %}
104-
{% endtabs %}
104+
{% endtabs %}
105+
106+
## attachmentClick
107+
The `AttachmentClick` event is triggered when an attached file is clicked in the AI AssistView.
108+
109+
{% tabs %}
110+
{% highlight razor tabtitle="CSHTML" %}
111+
{% include code-snippet/ai-assistview/events/attachmentClick/razor %}
112+
{% endhighlight %}
113+
{% highlight c# tabtitle="AttachmentClick.cs" %}
114+
{% include code-snippet/ai-assistview/events/attachmentClick/attachmentClick.cs %}
115+
{% endhighlight %}
116+
{% endtabs %}

ej2-asp-core-mvc/ai-assistview/EJ2_ASP.MVC/file-attachments.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,18 @@ You can use the  `MaxFileSize` property to allowed a maximum file size of the u
7474
{% endhighlight %}
7575
{% endtabs %}
7676

77-
![FileSize](images/file-size.png)
77+
![FileSize](images/file-size.png)
78+
79+
### Setting maximum count
80+
Restrict how many files can be attached at once using `MaximumCount` property. The default value is `10`. If users select more than the allowed count, the maximum count reached error will be displayed.
81+
82+
{% tabs %}
83+
{% highlight razor tabtitle="CSHTML" %}
84+
{% include code-snippet/ai-assistview/file-attachments/maximumCount/razor %}
85+
{% endhighlight %}
86+
{% highlight c# tabtitle="MaximumCount.cs" %}
87+
{% include code-snippet/ai-assistview/file-attachments/maximumCount/maximumCount.cs %}
88+
{% endhighlight %}
89+
{% endtabs %}
90+
91+
![MaximumCount](images/maximumCount.png)

ej2-asp-core-mvc/ai-assistview/EJ2_ASP.NETCORE/events.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,13 @@ The [AttachmentRemoved](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.
8080
{% highlight razor tabtitle="CSHTML" %}
8181
{% include code-snippet/ai-assistview/events/attachment-remove/tagHelper %}
8282
{% endhighlight %}
83-
{% endtabs %}
83+
{% endtabs %}
84+
85+
## attachmentClick
86+
The `attachmentClick` event is triggered when an attached file is clicked in the AI AssistView.
87+
88+
{% tabs %}
89+
{% highlight razor tabtitle="CSHTML" %}
90+
{% include code-snippet/ai-assistview/events/attachmentClick/tagHelper %}
91+
{% endhighlight %}
92+
{% endtabs %}

ej2-asp-core-mvc/ai-assistview/EJ2_ASP.NETCORE/file-attachments.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,18 @@ You can use the  `maxFileSize` property to allowed a maximum file size of the u
7474
{% endhighlight %}
7575
{% endtabs %}
7676

77-
![FileSize](images/file-size.png)
77+
![FileSize](images/file-size.png)
78+
79+
### Setting maximum count
80+
Restrict how many files can be attached at once using `maximumCount` property. The default value is `10`. If users select more than the allowed count, the maximum count reached error will be displayed.
81+
82+
{% tabs %}
83+
{% highlight razor tabtitle="CSHTML" %}
84+
{% include code-snippet/ai-assistview/file-attachments/maximumCount/razor %}
85+
{% endhighlight %}
86+
{% highlight c# tabtitle="MaximumCount.cs" %}
87+
{% include code-snippet/ai-assistview/file-attachments/maximumCount/maximumCount.cs %}
88+
{% endhighlight %}
89+
{% endtabs %}
90+
91+
![MaximumCount](images/maximumCount.png)
19.7 KB
Loading

ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/built-in-blocks/code-block.md

Lines changed: 0 additions & 75 deletions
This file was deleted.

ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/built-in-blocks/embed.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)