title: Setting the value of textfield on combobox change- easyui
body: <p>Below is the part of my rows. I need to change the value of BudgetLineItemCode field when combobox value is changed.</p>
  
  <pre><code>{ title: 'Index', field: 'RootLevel', width: 50, editor: { 'type': 'validatebox', 'options': { required: true}} },
              { field: 'PHeading', title: 'Heading', width: 240,
                  formatter: function (value) {
                      for (var i = 0; i &lt; CItems.length; i++) {
  
                          if (CItems[i].heading.toLowerCase() == value.toLowerCase()) {
                              return CItems[i].heading;
                      }
                      return value;
                  },
                  editor: {
                      type: 'combobox',
                      options: {
                          valueField: 'heading',
                          textField: 'heading',
                          data: CItems,
                          required: true
                          onSelect: function (record) {
                          var selrow = $('#trgrid').treegrid('getSelected');
                          var rowIndex = $('#trgrid').treegrid('find',row.BudgetDetailID)
                          var editors =$('#trgrid').treegrid('getEditors',selrow.BudgetDetailID);
  
                       var codeEditor = editors[2];
  
                       $(codeEditor.target).text('setValue', 'newval');
  
                      }
                  }
              }{ title: 'Code', field: 'BudgetLineItemCode', width: 50, editor: { 'type': 'text'} }
  </code></pre>
  
  <p>Also,
  One more question. There is no onChange event for combobox. Is there any way we can get past this. I mean like i may want to check for the code as user types in the combobox.</p>