Save the existing cell value for editing when clicked

I have a cloumn grid with xtype: datecolumn as shown below, Now that I want to change the cell value, i.e. Change the click time, the cell will become empty for editing, and when I click on the path, the previous value is returned, I want the value to be displayed for editing when I click

this is my gridcolumn

{ text: ' Time', dataIndex: 'time', xtype: 'datecolumn', format: 'Ymd H:i:s', editor: { xtype: 'datefield', format: 'Ymd H:i:s', allowBlank: false, maskRe: /[0-9,:,-]/ } }, 

small screen shot enter image description here How can I achieve this? enter image description here To edit the same old value and not empty and selecting a new date Thanks

+1
extjs grid extjs4 combobox
source share
1 answer

It was a format problem, I fixed it. I received data from db in the format m/d/YH:m:s , and the format in the grid was Ymd H:m:s , changing the format to the backend, fixing the problem.

Thanks @UDID for pointing out debugging.

0
source share

All Articles