13 Answers, 1 is accepted
I am afraid that at the time being, you can only define a string (comma separated values) to which the list could bind to. You can still use a DataSource object, but you should manually concatenate its dataItems, in order to create such string and supply the editors with it.
The other option that you have is to use the custom editor and place a DropDown in the window. Then you can set the preferable for this editor:
http://dojo.telerik.com/@nenchef/ojEWU/3
Hope this would help.
Regards,
Nencho
Progress Telerik

Hi Nencho, Is there a way to prevent the users from typing anything in the cell that has a dropdown? I want to let the uses only select a value from dropdown and not be able to type anything.
Thank you!
Phani
You can achieve this, by hooking a keydown event and determine whether the target cell is the one with the editor. Then you can prevent any keydown event:
http://dojo.telerik.com/@nenchef/ojEWU/8
Please note that the above suggested implementation is not supported with the Spreadsheet by design and any enhancement are not supported.
Hope this would help.
Regards,
Nencho
Progress Telerik


In order to achieve the desired functionality, you should simply subscribe for the dblclick event as well as for the keydown. I have updated the previously provided example, which you can find below:
http://dojo.telerik.com/@nenchef/ojEWU/9
Hope this would help.
Regards,
Nencho
Progress Telerik

The referenced method is listed in our API documentation:
http://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet#configuration-sheets.activeCell
Indeed, currently there is no example, but we will address this feedback and soon there will be added.
Regards,
Nencho
Progress Telerik

Hello Michelle,
Thank you for that remark. We will make sure to include the activeCell method in the API reference of the kendo.spreadsheet.Sheet class as well.
Regards,
Ianko
Progress Telerik

Hello,
I am using custom cell editor in kendo spreadsheet, but if I add content to the cell and clicked on custom cell editor for that cell then
previous content typed in cell is vanished
Is there any solution to preserve previous content
Hi Smita,
After debugging the case, it appears that this is a bug. Here you are the logged issue: https://github.com/telerik/kendo-ui-core/issues/5582.
Regards,
Ianko
Progress Telerik
