I am converting Infragistics 2010 v2 CLR3.5 to Infragistics 2014 v2 using 4.5 CLR using Visual Studio 2013 Professional Update 4. I am getting following error while building the project. Please reply immediately..........
Error 266 '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 error is there while fixing the code:
if (flgLoadState == true && ViewState[currentIndex.ToString() + "RightTag"] != null) { pnlTreeColumnRight.Nodes.Clear(); string tempNm, tempNodeStr; string[] rightNodes, rightNodesTxt, leftNodes, leftNodesTxt, ndText; tempNm = currentIndex.ToString() + "RightTag"; tempNodeStr = ViewState[tempNm].ToString(); rightNodes = tempNodeStr.Split(','); tempNm = currentIndex.ToString() + "RightTxt"; tempNodeStr = ViewState[tempNm].ToString(); rightNodesTxt = tempNodeStr.Split(','); pnlTreeColumnRight.Nodes.Add("Sorted Columns"); for (int cnt = 0; cnt < rightNodes.Length; cnt++) { ndText = rightNodes[cnt].ToString().Split(' '); DataTreeNode nd = new DataTreeNode(); nd.Text = rightNodesTxt[cnt].ToString(); nd.Tag = ndText[0].ToString(); if (ndText.Length > 1) { nd.Enabled = true; pnlTreeColumnRight.Nodes[0].Nodes.Add(nd); } else { pnlTreeColumnRight.Nodes[0].Nodes.Add(nd); } }
Hi,
ND.Tag converted to ND.Value -------------------successfully, it worked..........
Thanks for your reply.......:)
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Thank you for contacting Infragistics!
Please next time when posting in our forum ensure that you are setting the right category for the control (The category for the WebDataTree is this one). This will help us address your issue correctly and also will help other users to benefit from this thread.
There is no exact equivalent of
Jack said: nd.Tag
nd.Tag
Could you share what you are trying to achieve?