Custom Control In a Cell

5 posts, 0 answers
  1. Scott Michetti
    Scott Michetti avatar
    92 posts
    Member since:
    Feb 2010

    Posted 06 Nov 2014 Link to this post

    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
  2. Nikolay Demirev
    Admin
    Nikolay Demirev avatar
    103 posts

    Posted 11 Nov 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Scott Michetti
    Scott Michetti avatar
    92 posts
    Member since:
    Feb 2010

    Posted 11 Nov 2014 in reply to Nikolay Demirev Link to this post

    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
  5. Scott Michetti
    Scott Michetti avatar
    92 posts
    Member since:
    Feb 2010

    Posted 11 Nov 2014 in reply to Scott Michetti Link to this post

    Maybe a sample of placing my own textbox in a cell as the editor would help.

    Thanks
  6. Nikolay Demirev
    Admin
    Nikolay Demirev avatar
    103 posts

    Posted 12 Nov 2014 Link to this post

    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.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready