title: Jquery UI Dialog + Jqgrid in the same time
body: <p>Problem description:
  I have a listing with <a href="http://www.trirand.com/blog/" rel="nofollow">Jqgrid</a> and a navigation bar</p>
  
  <blockquote>
    <p>view:true,
            edit:true,
            add:true,
            search:false,
            del:true</p>
  </blockquote>
  
  <p>When i select a row and click edit, a dialog pops up, with the fields editable in it.</p>
  
  <p>For one field i registered an event handler:</p>
  
  <pre><code>$("#gps_coords").live("click",function(){
          $("#google_map").dialog("open");
      });
  </code></pre>
  
  <p>When  i click in the gps_coords field in the edit dialog, opens the google_map dialog,</p>
  
  <pre><code> $("#google_map").dialog(
  {
      width:800,
      height:500,
      autoOpen: false,
      modal:true, 
      ....
   }
  </code></pre>
  
  <p>But the focus or whatever is on the (now background edit dialog), so the cursor blinks
  in that form instead of the newly opened one.</p>
  
  <p>I have tryed (at dialog setup):</p>
  
  <pre><code>  open: function(event, ui) {
          $("#google_map").focus(); 
      }
  </code></pre>
  
  <p>Note: I have a text-field on the newly opened dialog but can't click in, or change it's value.</p>
  
  <p>So what can be done, to have the focus on the newly opened dialog?</p>
  
  <p>Thank you</p>