Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Not Set value on cell for BeforeEnterEditModeHandler.
posted

Hello

I have facing on issue.

i am using ultrawebgrid which have datetime column.

my problem is when cell in edit mode cell value display Date in this format "Mon Jan 1 00:00:00 UTC+0530 1900" and cell display mode value "1/1/1900" so my problem is when cell in edit mode value should be dispaly in "1/1/1900" this format.

so i have use one Javascript on Grid_BeforeEnterEditModeHandler.

var cell = igtbl_getCellById(cellId);var date=cell.getValue().format("MM/dd/yyyy");

then alert(date); return value as per my requirement "1/1/1900".

But when i try to set value in edit mode it is not set in cell when i using below code.

cell.setValue(date.toString());

so any other way to solve above issue i want same value in edit as well as in display mode. like "1/1/1900"?

Please provide solution as soon as possible.

Thanks in Advance.