Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2290
editable cells and keyboard
posted

steve,

say I want to intercept DisplayEditor and remove from the keyboard inputassisatntitem and change the keyboard type to numeric.

what would be the place to do it? Where would I have access to UITextField control to do that?

Do I need to create a new field in my column definition class or somehow I can gain access to provided one?

Thank you

Mark

Parents
  • 40030
    Offline posted

    Hey Mark, 

    So you've got a few options. 

    1. In the display Editor, you can create the editor you want to display, and have full control of it. 

    2. Like in the sample code you sent me, you can access the editor in the DisplayEditor, after you call the super version:  UITextField field = (UITextField) cell.Subviews[0]; However, this would be after the keyboard is registered to display, so is probably to late for this purpose. 

    3.The DSH, has a property called EditingDelegate, that presents you with the actual editor being displayed. It also cals this before the keyboard is displayed thus giving you a chance to change the keyboard type on the editor. 

    -SteveZ

Reply Children