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); } }
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Hi,
ND.Tag converted to ND.Value -------------------successfully, it worked..........
Thanks for your reply.......:)