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
275
Numeric Editor Provider client side Text Changed get column key
posted

From the TextChanged client side event (gets fired for every character change) of the NumericEditorProvider how can I get the column key of the current cell? From the sender and eventArgs I can't figure out how to get to it?

Thanks

  • 49378
    Verified Answer
    posted

    Hello Anthony,

    When an editor provider is used for multiple columns, only one provider will be created in actuality, and it will be displayed at the correct position as needed. Therefore in this case I would suggest handling the CellEditing's EnteredEditMode behavior to check which column is being edited. This can be checked from the event arguments using something similar to:

    eventArgs.getCell().get_column().get_key()

    The EnteredEditMode event will be fired prior to the Text or Value changed of the provider, hence the column key can be stored in a variable for later use.

    Hope this helps. Please feel free to contact me with any questions.