Results 1 to 2 of 2

Thread: trouble make new window focus (ext3.4)

  1. #1

    Default trouble make new window focus (ext3.4)


    I am opening a new window when a user clicks on a record on a gridpanel. The result I hope for is that a new windows opens (with gridpanel window still visible), but new window on top (focused) over the gridpanel window).
    The code is in my Ext.grid.RowSelectionModel and on selection change I do open the new window and I have been trying to focus the new window via
    However the new window is always not foucsed and the gridpanel window on top
    once the selectionchange function finished running. Stepping through In firebug I can see that the new windows gets focused but again loses focus when selection change finshed its run and the gridpanel row that was previosly selected gets focus again...
    I also tried to deseelct the row just to make this work, but still same result. What do I need to do to make the new windos focus ?

    Below is the selection model of my grid

            sm: new Ext.grid.RowSelectionModel({
                        listeners: {              
                            selectionchange: {             
                                fn: function () {
                                      var theselectedrow = this.getSelected();
                                      if (theselectedrow != undefined){

  2. #2
    Sencha User
    Join Date
    Jan 2011


    Try delaying the showing of the window, since its likely the full action of clicking the grid (which gives the parent window focus) fires after showing the second window...

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