#Common UI Customizations

Note

This page lists commonly used settings for UI customizations. AdHoc Settings are used in global.asax and CSS can be applied to report.css. (Refer to below example)

Non-Control UI Elements

Setting Name Setting Description Default Value
AdHocSettings.ThumbnailWidth Thumbnail Width  
AdHocSettings.ThumbnailHeight Thumbnail Height  
AdHocSettings.DashboardGaugeWidth Width of the Gauge in the Dashboard, height is changed proportionally  
AdHocSettings.GaugeWidth Width of the Gauge for non-Dashboard rendering  
AdHocSettings.GaugeHeight Height of the Gauge for non-Dashboard rendering  
AdHocSettings.HighChartLabelWidth Label width in HTML Charts. By default width is calculated automatically  

Rendering Settings (Style Tab AdhocSettings)

Each adHoc setting corresponds to the below setting under Style Tab

Setting Name Setting Description Default Value
AdHocSettings.DefaultAlternatingItemColor Alternating Cell Background Color  
AdHocSettings.DefaultHeaderForegroundColor Header Value Color  
AdHocSettings.DefaultItemForegroundColor Cell Value Color  
AdHocSettings.DefaultReportBorderColor Border Color  
AdHocSettings.DefaultReportHeaderColor Header Color  
AdHocSettings.DefaultReportItemColor Cell Background Color  

CSS Elements

Element CSS Class Default Value
Title [id$="_ReportsDiv"].ReportTitle 18pt
Description [id$="_ReportsDiv"].Description  
Report Header [id$="_ReportsDiv"].Header  
Footer [id$="_ReportsDiv"].Footer  

Examples

###Global.asax (C♯) - Thumbnail Height Change



public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
{

  public static void InitializeReporting() {

    if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
      return;
    AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";

    AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
    Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
    HttpContext.Current.Session["ReportingInitialized"] = true;

    AdHocSettings.ThumbnailHeight = 400;     // ThumbnailHeight set to 400


  }

###Global.asax (C♯) - Default Item Foreground Color Change



public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
{

  public static void InitializeReporting() {

    if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
      return;
    AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";

    AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
    Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
    HttpContext.Current.Session["ReportingInitialized"] = true;

  AdHocSettings.DefaultItemForegroundColor = "990000";     // set to 990000, which is 'RED' in hex


  }