取datagrid里的值

   function saveInfo(index){ 

            var ed = $('#dg').datagrid('getEditor',{'index':index,'field':'GDJC'});
            var testTmp = $(ed.target).parents('.datagrid-row-editing');
            var parentDom = testTmp.parents('.datagrid-view');
            var childDom1 = parentDom.children('div.datagrid-view1');
            var childDom2 = childDom1.find('tr.datagrid-row-editing');
            var childDom3 = parentDom.children('div.datagrid-view2');
            var childDom4 = childDom3.find('tr.datagrid-row-editing');

    //取combobox值
            var tmpGdjc = childDom2.children('td[field="GDJC"]');
            var gdjc = (tmpGdjc.find('input.combobox-f')).combobox('getValue');    

            //取numberbox值 
            var tmpZlsjf = childDom4.children('td[field="ZLSJF"]');
            var zlsjf = (tmpZlsjf.find('input.numberbox-f')).numberbox('getValue');editor="numberbox"  ,easyUI会在页面生成类似<input type=''text" class="datagrid-editable-input numberbox-f validatebox-text">标签

       //取text值
            var tmpZlsjf = childDom4.children('td[field="ZLSJF"]');
            var zlsjf = (tmpZlsjf.find('input.datagrid-editable-input')).val();//editor="text"  ,easyUI会在页面生成类似<input type=''text" class="datagrid-editable-input">标签
            alert("======["+zlsjf+"]");

}