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 325 'Infragistics.Web.UI.EditorControls.WebNumericEditor' does not contain a definition for 'NumberFormat' and no extension method 'NumberFormat' accepting a first argument of type 'Infragistics.Web.UI.EditorControls.WebNumericEditor' could be found (are you missing a using directive or an assembly reference?)
Error is coming is below old code converted from WebNumericEdit to WebNumericEditor:
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 = "";
Hi,
This got fixed today few minutes back.
Thanks for your efforts and timely help....:)
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
You are using old code that is not valud for the new WebNumericEditor control.
WebNumericEditor has Culture property, which can be used exactly same way as NumberFormat of WebNumericEdit:
System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");ci.NumberFormat.NumberGroupSizes = new int[]{0};//ci.NumberFormat.NumberDecimalSeparator = ",";//ci.NumberFormat.NumberGroupSeparator = ".";this.WebNumericEditor1.Culture = ci;