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

CellEditType for data file

In my scenario i'd like to have grid with posibility to add file per row.

How do i do that, i didnt find any DataFile in CellEditType

Is there any other way? 

Thanks

3 Replies

HJ Hariharan J V Syncfusion Team March 27, 2013 11:37 AM UTC

Hi Dejan,

Thank you for your interest in syncfusion products.

We regret to let you know that currently we don’t have file type support in CellEditType. We suspect your requirement is to have upload control option and upload certain file. Could you please provide more information about your requirement that what type of file you mean like image or some thing else.

Please let us know if you have any queries.

Thanks,



DE Dejan April 1, 2013 11:08 AM UTC

 We suspect your requirement is to have upload control option and upload certain file.

This is correct.

The best scenario would be to support inline changes too but that's is must requirement.

What i'm trying to achive is, when having my grid that when adding/editing data i can upload files to that specific row.


RR Ranjithkumar R G Syncfusion Team April 8, 2013 09:38 AM UTC

Hi Dejan,

 

Thanks for your update.

 

Your requirement of having UploadBox for each rows in grid and uploading files for specific rows can be achieved by having UploadBox in ItemTemplate of Grid. Please refer to the code snippet below.

 

[ASPX]

 

   <syncfusion:GridColumnDescriptor MappingName="Upload">
                        <ItemTemplate>
                        <syncfusion:UploadBox ID="UploadBox1" runat="server" 
                             ClientObjectId="UploadBoxClientObj1" UploadFolder="files"
                                    AutoFormat="Office2007 Blue" Width="100%" OnFileUploaded="file_uploaded"
                                    ShowSubmitButton="true" ViewStateMode="Enabled" />
                                    </ItemTemplate>
                        </syncfusion:GridColumnDescriptor>

 

 

Please refer to the below link to download the sample application.

 

UploadBox Column.zip

 

Please let us know if you have any concern.

 

Regards,

Ranjithkumar


Loader.
Live Chat Icon For mobile
Up arrow icon