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.
posted

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