Can someone provide assistance with an issue in the code block below?
function(s, e) {
form1.hfRaiseEvent.value = s.ID;
}
This particular function is triggered when the Client Side Click Event occurs. From my understanding, s refers to the Sender Object and e refers to the Event Object. Upon examining the properties of the Sender object based on a forum post, I came across the .ID property which should return the id of the sender.
The problem arises as the resulting string I receive is:
"undefined"
No errors are thrown, just that specific string is returned.
Additional details include:
I attempted using e.target.id thinking it would have the same effect as s.ID. However, the outcome was identical.
hfRaiseEvent represents a hidden field where the ID of the triggering control is stored.
The element invoking this function upon click is a Devexpress ASPxEditor.
If anyone could offer guidance on this matter, it would be greatly appreciated.
Thank you in advance.