title: extjs: how to use ajax call in column renderer?
body: <p>What i've got now is this:</p>
  
  <pre><code>renderer : function(value) {
      var ret;
      var conn = new Ext.data.Connection();
      conn.request({
          method : 'POST',
          url : rsdBackend,
          params : {
              get_object_by_id : 'true',
              rsd_type : record.data.references_table,
              object_id : value,
              uid : logged_user_id
          },
          success : function(responseObject) {
              var data = Ext.decode(responseObject.responseText);
              ret = data[0].object_name;
          }
      });
      return ret;
  }
  </code></pre>
  
  <p>If a column contains a link to another data (foreign key in database terms) i need to show the name of the object it references to.</p>
  
  <p>So, the best approach i can think of is using ajax call in renderer. It works, but the problem is: how can i return response?</p>
  
  <p>The above code won't work, cause <code>ret</code>is undefined where i'm trying to <code>return</code> it.</p>
  
  <p>How can this be done, or is there a better way?</p>