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

Custom Control In a Cell

4 Answers 185 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Scott Michetti
Top achievements
Rank 1
Scott Michetti asked on 06 Nov 2014, 09:12 PM
Hello, 18 months ago I inquired about placing a custom control in a cell here:(http://www.telerik.com/forums/custom-control-in-cell), and you indicated it was not yet implemented but is a high priority here(http://www.telerik.com/forums/replace-cell-editor). Is this possible yet, or is it still being worked on?

Thanks,
Scott

4 Answers, 1 is accepted

Sort by
0
Nikolay Demirev
Telerik team
answered on 11 Nov 2014, 08:19 AM
Hello,

This can be achieved by implementing a custom UI layer and including it in the UI layer collection of the RadSpreadsheet. Also you have to remove the current CellInput UI layer from the UI layer collection. You can find an example of how this collection is used on this forum thread.

Regards,
Nikolay Demirev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Scott Michetti
Top achievements
Rank 1
answered on 11 Nov 2014, 03:09 PM
Thanks Nikolay,
but this sample appears to place an item on top of a cell. I need a control within a cell, like a button, combo, or other control.  I was looking through the documentation and I don't see anything about the UI layer, so some help on that might make what I need to do clearer. I'm still not sure how to place a control in a cell.

Thanks,
Scott
0
Scott Michetti
Top achievements
Rank 1
answered on 11 Nov 2014, 03:14 PM
Maybe a sample of placing my own textbox in a cell as the editor would help.

Thanks
0
Nikolay Demirev
Telerik team
answered on 12 Nov 2014, 09:18 AM
Hello Scott,

I have prepared a sample project showing how to remove the CellEditUILayer and add a custom UI layer that uses a RadNumericUpDown as cell editor. You can find it attached.

I have found a bug while preparing the sample project that prevents the change of the active cell mode to Edit when the CellInputUILayer is removed. The bug is fixed and the fix will be available for download with the next LIB that will be released next week. Please bear in mind that the demo project will not enter in edit mode if you double click a cell until you update your binaries.

Regards,
Nikolay Demirev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Spreadsheet
Asked by
Scott Michetti
Top achievements
Rank 1
Answers by
Nikolay Demirev
Telerik team
Scott Michetti
Top achievements
Rank 1
Share this question
or