Spreadsheet Validation at the Column Level?

1 Answer 188 Views
Spreadsheet Validation
xav
Top achievements
Rank 1
xav asked on 31 May 2022, 03:54 PM
I'm looking at the spreadsheet validation here: https://demos.telerik.com/kendo-ui/spreadsheet/validation
It should that validation rules are set at each individual cell.   We are looking to build this grid dynamically (populating from a database) and that would require iterating through each cell to set validation.  Is there a way to set validation at the column level? 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 03 Jun 2022, 08:26 AM

Hello,

You can use the range validation method and apply validation to multiple cells:

- https://docs.telerik.com/kendo-ui/api/javascript/spreadsheet/range/methods/validation

Here is a Dojo example where the validation is applied to all the cells in column A.

I hope this helps.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

brajesh
Top achievements
Rank 1
Iron
commented on 15 Jun 2022, 10:53 AM

Yes this is helping but I need to set validation dynamically because columns comes dynamically.
Martin
Telerik team
commented on 20 Jun 2022, 10:12 AM

The validation method is the one you should use to set rules dynamically, as you can use the Range value method to change the cell values dynamically. If you provide a runnable example where I can better understand the scenario, I will be able to provide further guidance.
Tags
Spreadsheet Validation
Asked by
xav
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or