title: calling of dataInit and dataEvents after the control are placed on the page
body: <p>I have a jquery autocomplete and jquery chosen in my grid add pop up.
  I want chosen(adrs column) values to be populated on the basis of autocomplete(user column) selection i.e. ajax should take autocomplete selection to backend and get the results for chosen.
  For this I want chosen dataInit to be called after populating autocomplete.</p>
  
  <p>How can I do this because dataInit is called as soon as pop up opens.</p>
  
  <p>steps that I am following</p>
  
  <ol>
  <li>populate user autocomplete when the user starts typing into it. </li>
  <li>till this time the adrs chosen is already avilable on the DOM.</li>
  </ol>
  
  <p>Expected Behaviour : 
  1.Select user from user autocomplete drop down
  2. send the selected user value in ajax call that will help in populating the chosen dropdown.</p>
  
  <p>Problem :</p>
  
  <ol>
  <li>How to use selected user in ajax call for adrs chosen .</li>
  <li>I want chosen results to be populated/refreshed after selecting user.I am using dataInit for this ,not sure if I have to use any other dataEvents.</li>
  </ol>
  
  <p>Thanks..</p>
  
  <pre><code>    {name:"user",index:"user",editoptions:{
       dataInit: function (elem) {
                               setTimeout(function(){   
  
                              var dataSrc= function(request, response,term) {  
                                          $.ajax({
                                              //this will populate autocomplete
                                      };
                                     $(elem).autocomplete({
                                         source: dataSrc,
                                         minLength: 3
                                     });
                               },50);
                       }
  }
  },
  {name:"adrs",index:"adrs",edittype:'select','editoptions': {
                      dataInit: function (elem) {
  
  
                              var optionBlank = document.createElement('option');
                              optionBlank.text = "esefasd1" ;
                              optionBlank.value = "ds1fas" ;
                              elem.add(optionBlank);
                                                          var option = document.createElement('option');
                              option.text = "esefasd" ;
                              option.value = "dsfas" ;
                              elem.add(option);
  
  
                          $(elem).chosen();
                       }//END Dataint
  
                      }}
  </code></pre>
  
  <p>I want to fire an ajax for adrs column as well which will take selected user as input.As of now this chosen is getting populated with pop up only. I want to populate it after selecting user.</p>