From f2c4e06eece535144c44ca89f82fbb3f28ece387 Mon Sep 17 00:00:00 2001 From: Pugazhenthi-Murugan Date: Thu, 10 Sep 2026 16:16:09 +0530 Subject: [PATCH 1/2] 1052283: Including Attachment removing event --- blazor/ai-assistview/events.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/blazor/ai-assistview/events.md b/blazor/ai-assistview/events.md index b4675d54be..4901b15277 100644 --- a/blazor/ai-assistview/events.md +++ b/blazor/ai-assistview/events.md @@ -213,6 +213,39 @@ The [AttachmentRemoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor. } ``` +## AttachmentRemoving + +The [AttachmentRemoving](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentRemoving) event is triggered when an attached file is being removed in the AI AssistView. + +```cshtml + +@using Syncfusion.Blazor.InteractiveChat +@using Syncfusion.Blazor.Inputs + +
+ +
+ +@code { + private void AttachmentRemoving(BeforeRemoveEventArgs args) + { + // Your required action here + } + private AssistViewAttachmentSettings attachmentSettings = new AssistViewAttachmentSettings() + { + Enable = true, + SaveUrl = "https://blazor.syncfusion.com/services/production/api/FileUploader/Save", + RemoveUrl = "https://blazor.syncfusion.com/services/production/api/FileUploader/Remove" + }; + private async Task PromptRequest(AssistViewPromptRequestedEventArgs args) + { + await Task.Delay(1000); + var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration."; + args.Response = defaultResponse; + } +} +``` + ## AttachmentClick The [AttachmentClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentClick) event is triggered when an attached file is clicked in the AI AssistView. From 9b3d4e088a2d9cdcbdbcb15feccd2455986f7464 Mon Sep 17 00:00:00 2001 From: Pugazhenthi-Murugan Date: Fri, 11 Sep 2026 13:00:46 +0530 Subject: [PATCH 2/2] 1052283: Update the eventargs --- blazor/ai-assistview/events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor/ai-assistview/events.md b/blazor/ai-assistview/events.md index 4901b15277..b6ee399bc4 100644 --- a/blazor/ai-assistview/events.md +++ b/blazor/ai-assistview/events.md @@ -227,7 +227,7 @@ The [AttachmentRemoving](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor @code { - private void AttachmentRemoving(BeforeRemoveEventArgs args) + private void AttachmentRemoving(AttachmentRemovingEventArgs args) { // Your required action here }