Rank: Advanced Member Groups: Member
Joined: 8/26/2021 Posts: 47
|
Using eo.web 2023.3.77, my grid contain one TextBoxColumn (not Custom Edit) and also specified its ClientSideEndEdit property. At run time, after user enter new text value in the TextBoxColumn and leave the cell, then my client side javascript function is successfully triggered.
But problem is, at that javascript function, how can I get the user modifed value of the TextBoxColumn?? I try using the cell.getValue(), but it return the old (that is, before edit) value. I also try using cell.newValue, but it return ''.
Is it a bug, or do I miss something?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
The value is passed to your handler through the second argument. See here for more details: https://www.essentialobjects.com/doc/jsdoc.public.web.handlers.grid_column_endedit.htmlThis handler is called BEFORE the new value has been submitted to the Grid. So it not only gives you a chance to be notified of the change, but also gives you a chance to reject/modify the new value if you choose to. The value returned by your handler is submitted the the Grid and then it will be visible to GridCell.GetValue.
|
Rank: Advanced Member Groups: Member
Joined: 8/26/2021 Posts: 47
|
Thank you. It works.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great. Please feel free to let us know if there is anything else.
|