Possible to combine data bindings?

Is it possible to use both `AjaxSettings` and `List objects`, that are documented at https://blazor.syncfusion.com/documentation/file-manager/data-binding, at the same time? I would like to use `List objects` for the regular operations, but `AjaxSettings` for the file download, file upload and get image operations.


3 Replies

LD LeoLavanya Dhanaraj Syncfusion Team May 6, 2025 01:43 PM UTC

Hi Daniel,


Greetings from Syncfusion support.


We would like to inform you that you can use either AJAX settings or our list of object support in your application. If you want to eliminate HTTP client requests and backend URL configuration, we suggest using our File Manager Injected service. You can utilize the File Manager events to access essential item details from the event arguments. Subsequently, update the File Manager component’s result data by incorporating the data returned from the injected service. Assign the returned data to the response property of the corresponding event argument.


For the read, create, move, and delete actions, you can assign the response to the event response arguments. For download and get image actions, updating the downloaded file’s stream data in the FileStream and DownloadFileName arguments will complete the download action and set the file name, respectively. For images, updating the image file’s stream data in the event argument FileStream will complete the image retrieval operation.


Injected service sample: https://github.com/SyncfusionExamples/blazor-filemanager-with-flat-data/tree/master


Demo for list of objects: https://blazor.syncfusion.com/demos/file-manager/flat-data?theme=fluent


Regards,

Leo Lavanya Dhanaraj



DJ Daniel Jonsson May 20, 2025 08:45 PM UTC

Hi Leo,

Is it possible to combine the two?

The read, create, move, and delete actions that you mention. I would like to do them using the "list of object support" that you mention. While at the same time, I would like for download, get image actions and upload to use "Ajax Settings".

Is it possible to mix them like that in th



LD LeoLavanya Dhanaraj Syncfusion Team May 22, 2025 01:41 PM UTC

Hi Daniel,


As mentioned earlier, you can use either AJAX settings or our list of object support in your application, but not both simultaneously. There is no need to use the read, create, move, and delete actions with the "list of object support" while also using download, get image actions, and upload with "AJAX settings." These actions can also be accomplished through the list of objects, similar to server-side integration. By using the related events, you can access essential item details from the event arguments.


For your reference, we have included the FileManager sample with injected service. Please check this on your end and get back to us if you need any further assistance.


Attachment: blazorfilemanagerwithflatdata_b0017587.zip

Loader.
Up arrow icon