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
ContentPane: how to fix, please help.......
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 223 'Infragistics.Web.UI.LayoutControls.ContentTabItem' does not contain a definition for 'ContentPane' and no extension method 'ContentPane' accepting a first argument of type 'Infragistics.Web.UI.LayoutControls.ContentTabItem' could be found (are you missing a using directive or an assembly reference?)

Below error is there while fixing the code:

WebTab uwt = (WebTab)sender;
 
            foreach (ContentTabItem t in uwt.Tabs)
            {
                WebNumericEditor wne
                    = (Infragistics.Web.UI.EditorControls.WebNumericEditor)
                 contentTab.Tabs.FindTabFromKey(t.Key).ContentPane.FindControl("WebNumericEditor" + t.Key);
                wne.NumberFormat = new System.Globalization.NumberFormatInfo() { NumberGroupSeparator = "" };
                wne.NegativeForeColor = Color.Red;
 
                wne.CssClass = "";
            }
Parents
No Data
Reply
  • 16310
    Offline posted

    Hi,

    You should rather use the ueqwivalent code for WebTab, which is:

    contentTab.Tabs.FindTabFromKey(t.Key).FindChildControl(("WebNumericEditor" + t.Key)

Children