1. #1
    Sencha User castitas's Avatar
    Join Date
    Sep 2011
    Location
    US
    Posts
    116
    Answers
    3
    Vote Rating
    3
    castitas is on a distinguished road

      0  

    Default Answered: Moving the roweditor to another grid

    Answered: Moving the roweditor to another grid


    Is it possible to move the roweditor from one grid to another? Well, obviously it's possible--it is JavaScript after all--but would it be worth the work that would have to be done?


    Why:
    I have a grid that is supposed to have a variable number of columns, which the user can change (a "dynamic" grid). This means 1) column model comes from the server and 2) I have to recreate the grid each time. Destroying the old grid doesn't get rid of the roweditor, perhaps because we have saved the grid config, and since (previously) we reuse the config, the roweditor gets reapplied, but to a different grid, causing errors. To solve that error, we have it recreate the editor every time. If it is efficient, I'd like to keep the roweditor, since I think it would lower the recreation time. Hopefully, your eyebrows aren't raised anymore.
    word

  2. IMO, each grid should use it's own row editor instance. The grid should be destroying the classes it uses including the row editor instance.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,065
    Answers
    3498
    Vote Rating
    852
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    IMO, each grid should use it's own row editor instance. The grid should be destroying the classes it uses including the row editor instance.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread