API/CodeSamples/FormatDropDownWidth.md
... ...
@@ -0,0 +1,50 @@
1
+#FormatDropDownWidth
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Gets or sets the width in pixels of the format dropdown on the fields tab.
8
+
9
+**Default Value:** 190
10
+
11
+##Global.asax (C♯)
12
+
13
+```csharp
14
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
15
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
16
+{
17
+ // Configure settings
18
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
19
+ public static void InitializeReporting() {
20
+ //Check to see if we've already initialized.
21
+ if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
22
+ return;
23
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
24
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
25
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
26
+ AdHocSettings.FormatDropDownWidth = 123; //The relevant setting
27
+ }
28
+}
29
+```
30
+
31
+##Global.asax (VB.NET)
32
+
33
+```visualbasic
34
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
35
+Public Class CustomAdHocConfig
36
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
37
+
38
+ Shared Sub InitializeReporting()
39
+ 'Check to see if we've already initialized
40
+ If HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing Then
41
+ Return
42
+ 'Initialize System
43
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
44
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
45
+ Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
46
+ AdHocSettings.FormatDropDownWidth = 234 'The relevant setting
47
+ HttpContext.Current.Session("ReportingInitialized") = True
48
+ End Sub
49
+End Class
50
+```