Once, the custom editor is defined, you can apply it to a range of cells, using the range method.
var spreadsheet = $("#spreadsheet").data('kendoSpreadsheet')
var sheet = spreadsheet.activeSheet();
sheet.range("B1:B200").background('#fef0cd').editor("dropdownlist");
Thanks for your reply, I was hoping to use a solution that keeps the dropdown in the spreadsheet cell, like the 'list' validation that I currently have in place.
Is there a way to use the multiselect instead of a list? Once the values are selected they appear in the spreadsheet cell like they look in a multi-select
I have looked at the cell validation documentation and I can see that I can use a 'custom' datatype,
how can I make this work with a multi select dropdown?
var range = spreadsheet.activeSheet().range("1:1");
range.enable(false);
var columnSens = spreadsheet.activeSheet().range("C2:C30");
columnSens.validation({
dataType: "list",
from: "ListValues!A$1:B$1",
allowNulls: true,
type: "reject",
titleTemplate: "Value Invalid",
messageTemplate: "Valid Values: 'true' or 'false'."
});
Neli
Telerik team
commented on 09 Nov 2022, 08:25 AM
Hi Ian,
I am afraid that currently configuring MultiSelect through the Range validation is not supported. If you need to have MultiSelect in the Spreadsheet cells you will have to use the approach with the custom editor described in the previous reply.
If you think that such an enhancement would be a valuable addition to the suite, you can submit a new Feature Request in our official Feedback Portal where new ideas are constantly being evaluated and the most popular ones are implemented in future releases: