Menu

#26 Ability to remove predefined CellEditors

v2.10
closed
5
2018-05-05
2015-02-23
No

I think having some predefined cell editors is quite nice and very usable, but if one doesn't want to have a NumericUpDown for Integer editing, there should be a possibility to remove the predefined editor with some API like EditorRegistry.Unregister(Type).
In that case determining the cell editor should fall back to the default editor.

Discussion

  • Phillip Piper

    Phillip Piper - 2015-02-23

    You can do this right now by registering a delegate that returns null:

    ObjectListView.EditorRegistry.Register(typeof(int), (model, column, value) => null);
    

    I agree that Unregister would be neater.

     
  • Oliver Lexis

    Oliver Lexis - 2015-02-23

    Just an idea: What about having a new property for OLVColumns storing a delegate of type EditorCreatorDelegate to have individual cell editors for columns, which superseedes the EditorRegistry if the delegate != null ?

     
  • Phillip Piper

    Phillip Piper - 2015-08-03
    • status: open --> accepted
     
  • Phillip Piper

    Phillip Piper - 2018-05-05
    • status: accepted --> closed
    • assigned_to: Phillip Piper
    • Group: v2.9 --> v2.10
     
  • Phillip Piper

    Phillip Piper - 2018-05-05

    This feature has been checked into the code base and will be released in v2.10.

     

Log in to post a comment.