I just upgraded my project using VersionLess assemblies for both v. 11.1 and v. 14.1.
I was able to successfully compile my project without errors, however, now that I have started running my application, I am getting numerous JavaScript exceptions when attempting to use the following JavaScript functions:
igedit_getById
I noticed that many of my controls have now changed from the Control ID to appending _clientState to the end of the control name, but even adding this string to my JavaScript functions does not resolve the throwing of the exceptions.
Therefore, does this function still exist in the v. 14.1 controls or is it replaced by something newer?
Please advise.
Thanks.
Hello Samir,
Please feel free to contact us if you need any further assistance with this matter.
Yes. The method is expecting the full ClientID.
If the control resides on the same page as the code you use to access it you could directly use: $find(“<%=YourControl.ClientID%>”)
This will directly evaluate the ClientID of the control so that you can pass it to the find method.
Let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
In my old code, I had code such as the following:
igedit_getById("ctl00_ItemDetailContent_nrWebTabMain__ctl2_wgbClaimantName_txtMI"); Does this mean that I can simply replace the new code using the find method such as this:
$find("txtMI");or do I still need to use the $find method with the fully qualified Client ID such as this:
$find("ctl00_ItemDetailContent_nrWebTabMain__ctl2_wgbClaimantName_txtMI");Please clarify.Thanks.
Thank you for posting in our forum.
“igedit_getById” is an utility function specific to the classical WebEditors controls.
It won’t work for getting any of Aikido controls by id.
Instead for the Aikido controls the $find(ControlID) method can be used.