|
Title: change cell text without editor (datagrid) Post by: iskandarkbr on March 10, 2015, 07:15:30 PM can we change the text of cell in datagrid?
i want calculate two editor-field which the result place to non-editor-field Title: Re: change cell text without editor (datagrid) Post by: iskandarkbr on March 10, 2015, 07:39:40 PM i found that :
row.fieldResult=row.fieldA * row.fieldB its simple indeed. but, field fieldResult change after we endEdit the field can we get the change for fieldResult automatically while we type number on editor ( i bind to keyup event) Title: Re: change cell text without editor (datagrid) Post by: stworthy on March 10, 2015, 07:43:40 PM Please refer to http://www.jeasyui.com/forum/index.php?topic=1803.0
Title: Re: change cell text without editor (datagrid) Post by: iskandarkbr on March 10, 2015, 08:01:35 PM the above topic assumed that all field has editor, in my case i dont put editor on the result field
Title: Re: change cell text without editor (datagrid) Post by: iskandarkbr on March 10, 2015, 08:11:03 PM i solved it, but little bit tricky :) ;)
row.resultField=editor*row.B $("#dg").datagrid('endEdit', index); $("#dg").datagrid('selectRow',index).datagrid('editCell',{index: index,field: currentFieldName}); |