This article mainly introduces how to solve the problem of saving the manual input of the easyui custom tag datagrideditcombobox. For more information about how to use the onEndEdit event (this event can get the editor object, the onAfterEdit event cannot obtain the Editor object)
Use the editor to obtain and save the input data.
Int ci = 0; for (Column col: columnList) {for (Combobox cbb: col. getCombobox () {if (cbb! = Null) {str + = "var ed" + ci + "= $ j (\" # "+ RandomNumber + "\"). datagrid (\ "getEditor \", {index: rowIndex, field: \ "" + col. getField () + "\"}); "; str + =" var val "+ ci +" = ed "+ ci + ". target. combobox ('gettext'); "; str + =" rowData [\ "" + col. getField () + "\"] = val "+ ci +"; "; ci ++ ;}}}
The above content is a small series of instructions on how to solve the problem of manually inputting and saving all the records of the easyui custom tag datagrid edit combobox. I hope this will help you.