Infragistics45.Web.v13.2
I am inside the NodeClick event and would like to get the value of the node but node.get_value(); returns Object doesn't support property or method 'get_value'.
function wdtOrder_NodeClick(sender, eventArgs){ ///<summary> /// ///</summary> ///<param name="sender" type="Infragistics.Web.UI.WebDataTree"></param> ///<param name="eventArgs" type="Infragistics.Web.UI.DataTreeNodeEventArgs"></param>
//Add code to handle your event here. var oNode = eventArgs.getNode(); window.alert(oNode.get_value());}// -->
Hello akcia,
Thank you for letting us now of this issue!
You are correct that the function is not listed in the API at:
http://help.infragistics.com/doc/ASPNET/2014.1/CLR4.0/?page=WebDataTree~Infragistics.Web.UI.Node_members.html
I have logged this documentation issue in our internal system so it can be fixed in a future release.
Please do not hesitate to contact me if you have any questions.
Thank you, Petar. That is exactly what I needed.
One last thing. Can you point me to the documentation that would explain this?
I regularly use the online documentation and I looked for this specifically in:
CSOM > ASP.NET AJAX CSOM > WebDataTree Libary > Infragistics.Web.UI.Namespace > Classes > Node > Members
I do not see any reference to this.
The javascript function for accessing the value of a WebDataTree node is calledget_valueString().Therefore in this case:
oNode.get_valueString() is what should be needed.
Please let me know if this helps.