This is a migrated thread and some comments may be shown as answers.

validation on uploaded excel sheet

3 Answers 203 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Swetha
Top achievements
Rank 1
Swetha asked on 07 Mar 2016, 05:26 AM

Hi, I want users to upload excel sheets in predefined manner which we already defined to them.

Upon upload, we would need to validate and save to database.

i think I can use radupload to upload it, but how to mark cells in red which are not valid

For example, say a cell for last name is empty or birthdate is not in correct format,etc

Appreciate if you can give approach to this or sample code

Thanks

Swetha

 

3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 09 Mar 2016, 08:20 AM
Hello,

The following demo showcases the validation options provided by the Spreadsheet control:
http://demos.telerik.com/aspnet-ajax/spreadsheet/examples/validation/defaultcs.aspx

Regards,
Bozhidar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Swetha
Top achievements
Rank 1
answered on 24 Mar 2016, 11:23 PM

Thanks for the response Bozhidar.

Can you briefly give me steps to create this use case?

I wanted users to upload excel sheets in pre defined format which we already give them.

validation should happen when they upload and should show alerts in those columns which failed

users should be able to fix it and save it and click on submit button when done

Thank You

Swetha

0
Bozhidar
Telerik team
answered on 25 Mar 2016, 07:49 AM
Hi,

Once the Spreadsheet is loaded on the client, you can use the client set_validation method to define validation to a range of your choice. The method is described in our online documentation:
http://docs.telerik.com/devtools/aspnet-ajax/controls/spreadsheet/client-side-programming/objects/spreadsheetrange

Regards,
Bozhidar
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Spreadsheet
Asked by
Swetha
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Swetha
Top achievements
Rank 1
Share this question
or