Results 1 to 2 of 2

Thread: Moving the roweditor to another grid

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User castitas's Avatar
    Join Date
    Sep 2011
    Vote Rating

    Default 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?

    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.

  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.

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