Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1620
Tag: error coming after upgrading from UltraWebGrid to WebDataGrid
posted

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);
                            }
                        }
Parents Reply Children
No Data