4d9f42fc092e8cad7f3393b3e0817dc7c0f9ce76
FAQ/Common-UI-Customizations.md
| ... | ... | @@ -74,3 +74,30 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 74 | 74 | } |
| 75 | 75 | ``` |
| 76 | 76 |  |
| 77 | + |
|
| 78 | + |
|
| 79 | +###Global.asax (C♯) - Default Item Foreground Color Change |
|
| 80 | + |
|
| 81 | + |
|
| 82 | +```csharp |
|
| 83 | + |
|
| 84 | + |
|
| 85 | +public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
|
| 86 | +{ |
|
| 87 | + |
|
| 88 | + public static void InitializeReporting() { |
|
| 89 | + |
|
| 90 | + if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null) |
|
| 91 | + return; |
|
| 92 | + AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
|
| 93 | + |
|
| 94 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 95 | + Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
|
| 96 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 97 | + |
|
| 98 | + AdHocSettings.DefaultItemForegroundColor = "990000"; // set to 990000, which is 'RED' in hex |
|
| 99 | + |
|
| 100 | + |
|
| 101 | + } |
|
| 102 | +``` |
|
| 103 | + |