In the below old code "Node nd = new Node(); being used and it has been changed to new "DataTreeNode" and error is coming on "Tag"
Error: Error 190 'Infragistics.Web.UI.NavigationControls.DataTreeNode' does not contain a definition for 'Tag' and no extension method 'Tag' accepting a first argument of type 'Infragistics.Web.UI.NavigationControls.DataTreeNode' could be found (are you missing a using directive or an assembly reference?)
Below code where error is coming:
pnlTreeColumnLeft.Nodes.Add("Columns Available for Sorting"); for (int cnt = 0; cnt < leftNodes.Length; cnt++) { DataTreeNode nd = new DataTreeNode(); //FYI...in old control "Node" being used instead of "DataTreeNode", is DataTreeNode to be used or something else.???? nd.Tag = leftNodes[cnt].ToString(); //Error is coming in "Tag" nd.Text = leftNodesTxt[cnt].ToString(); pnlTreeColumnLeft.Nodes[0].Nodes.Add(nd); }
Hello,
Thank you for posting in our community! Actually there are a lot of similar questions regarding the migration of an old control answered in the forum.
Regarding the use of a Tag à in the new API it is possible to use Value instead http://www.infragistics.com/community/forums/t/66711.aspx
Yes WebDataTree uses DataTreeNode class. Additionally you could find the API for the WebDataTree at: http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataTree_API_Overview.html
As the new controls have different architecture, when migrating it is always best to have the new API in mind: http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=Web_WebDataTree.html
The following will also be of help to you when migrating. There are a lot of similar topics existing in the community.Reg: Need help on Infragistics WebDataTree Node Properties & methodsRegarding migration from infragistics 2010.2 to 2012.2