Results 1 to 2 of 2

Thread: Extending RowEditor

  1. #1
    Sencha User
    Join Date
    Apr 2014

    Default Extending RowEditor


    I'm using the RowEditing functionality for editing rows inline in a gridpanel.

    I have a requirement to position the save/cancel buttons to the middle right of the row (instead of their current position which is below the row being edited in the middle)

    Now, I have achieved this through extending Ext.grid.RowEditor and overriding the 'reposition' function which deals with positioning the editor and the floating save/cancel buttons.

    All works well, but I'm wondering if I've gone about this the right way. The main reason I'm thinking like this is because this note in the docs under Ext.grid.RowEditor worries me:

    This is a private utility class for internal use by the framework. Don't rely on its existence.
    But in my case, I am relying on its existence as I'm extending it!

    I'm a newbie here, so any comment/thoughts would be appreciated

  2. #2
    Sencha User
    Join Date
    Feb 2013


    Sometimes the only way to achieve the functionality you want is to extend a private method. You'll have to evaluate the risks yourself. Even overrides to public methods need to be updated sometimes with the coming of new version releases, or removed if a bug has been corrected. Looks like the reposition method has been in the framework since 4.0.7, and is still present in 5.0.0 (and still private).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts