Welcome Guest Search | Active Topics | Sign In | Register

Get eo.web's Cell Modified value in client side... Options
grchen168
Posted: Thursday, November 9, 2023 2:03:30 AM
Rank: Member
Groups: Member

Joined: 8/26/2021
Posts: 28
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?
eo_support
Posted: Thursday, November 9, 2023 11:42:02 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
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.html

This 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.
grchen168
Posted: Thursday, November 9, 2023 9:44:38 PM
Rank: Member
Groups: Member

Joined: 8/26/2021
Posts: 28
Thank you.
It works.
eo_support
Posted: Friday, November 10, 2023 10:34:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
Great. Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.