We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How I can attach file in Data Grid?


How I can attach file in Data Grid?

on Attaching file in data grid dialog the model returns not valid modelError Msg.PNG
Create Function.PNGModel.PNGNot Valid.PNG

5 Replies

VB Vinitha Balasubramanian Syncfusion Team November 10, 2022 03:18 PM UTC

Hi Ahmed,


Greetings from Syncfusion support.


Before providing a solution to your query, we need some information to know your requirement clearly which will help us proceed further at our end. Kindly share the below details.


  1. Share whether you use uploader component or file manager component to upload.

  2. Share what type of template you have use to display while uploading the file.

  3. Share your exact requirement in detail with explanation

  4. Share the package version you are using.


Regards,

Vinitha Balasubramanian



AH Ahmed November 13, 2022 02:35 PM UTC

Hi,

1- I am using uploader component in Data Grid.

3- I just want to upload file using uploader component in data grid ..Error: on uploading file it returns invalid model 

4-Package version:Syncfusion.EJ2.AspNet.Core 19.4.0.38



VB Vinitha Balasubramanian Syncfusion Team November 17, 2022 11:53 AM UTC

We prepared a sample using uploader component to upload a file. In the below sample we have use the EJ2 Uploader control for uploading image and storing it in the back end(in base64 format) and then displaying it in the Grid. You can achieve your requirement to upload a file using this way.

 Please refer the sample for more information.


Sample: https://www.syncfusion.com/downloads/support/directtrac/341287/ze/3412871844616740.zip



AH Ahmed November 21, 2022 07:55 PM UTC

Unfortunately, I am not able to download the sample. I get "Access denied" message as attached in the following imageimage_8.png



RS Rajapandiyan Settu Syncfusion Team November 22, 2022 10:14 AM UTC

Hi Ahmed,

We apologize for the inconvenience. You can download the sample from the below link,


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/3412871844616740_(1)-2130479609.zip


Also, please find the KB for your reference,

https://www.syncfusion.com/kb/12693/how-to-edit-the-column-in-grid-using-the-uploader-control


Regards,

Rajapandiyan S


Loader.
Live Chat Icon For mobile
Up arrow icon