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 326 'Infragistics.Web.UI.EditorControls.WebNumericEditor' does not contain a definition for 'NegativeForeColor' and no extension method 'NegativeForeColor' accepting a first argument of type 'Infragistics.Web.UI.EditorControls.WebNumericEditor' could be found (are you missing a using directive or an assembly reference?)
Getting an error in old code which I am trying to convert 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 = "";
Hello Jack,
You can style negative values in WebNumericEditor using the NegativeCssClass property:
wne.NegativeCssClass = "NegativeText";
...
<style type="text/css"> .NegativeText { color : Red; } </style>
Please let me know if you have other questions