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
Levels: not working after upgrading from UltraWebGrid to WebDataGrid..........please reply...
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 270 'Infragistics.Web.UI.NavigationControls.DataTreeNode' does not contain a definition for 'Levels' and no extension method 'Levels' 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:

WebDataTree1.Levels[0].LevelKeyField = "Menu2_ItemID";
               if (menuDS.Tables["Menu3"].Rows.Count > 0)
               {
                   menuDS.Relations.Add("MenuLevel1",
                       menuDS.Tables["Menu2"].Columns["Menu2_ID"],
                       menuDS.Tables["Menu3"].Columns["Menu3_parentID"]);
 
                   WebDataTree1.Levels[0].RelationName = "MenuLevel1";
                   WebDataTree1.Levels[1].ColumnName = "Menu3_Nm";
                   WebDataTree1.Levels[1].LevelKeyField = "Menu3_ItemID";
               }
Parents Reply Children
No Data