Esempio n. 1
0
 /// <summary>
 ///   Constructor
 /// </summary>
 /// <param name="displayLength">Number of rows to display on a single page when using pagination</param>
 /// <param name="columns">Column specifications</param>
 /// <param name="sortOption">Column sort option. If this is null no sorting will be applied</param>
 /// <param name="ajaxSource">AJAX source URL</param>
 /// <param name="footerSuffix">
 ///   [Optional] This string gives information to the end user about the information
 ///   that is current on display on the page
 /// </param>
 /// <param name="tableHeight">
 ///   [Optional] Height of the table in pixels. Defaults to 200px. Note. Pass in a null if to do not
 ///   want any table height set
 /// </param>
 public DatatableSettings(int displayLength, IEnumerable <AOColumn> columns, AASort sortOption, string ajaxSource,
                          string footerSuffix = "", string tableHeight = "200px")
     : this(
         displayLength, columns, (sortOption == null) ? null : new[] { sortOption }, ajaxSource, footerSuffix, tableHeight)
 {
     // nothing to do here
 }
Esempio n. 2
0
 /// <summary>
 ///   Setup the jQuery dataTables aaSort variable from given set
 ///   of sort option
 /// </summary>
 /// <param name="sortOption">Sort option</param>
 public void SetupAASort(AASort sortOption)
 {
     SetupAASort(new[] { sortOption });
 }
Esempio n. 3
0
 /// <summary>
 ///   Constructor
 /// </summary>
 /// <param name="displayLength">Number of rows to display on a single page when using pagination</param>
 /// <param name="sortOption">Column sort option. If this is null no sorting will be applied</param>
 /// <param name="ajaxSource">AJAX source URL</param>
 /// <param name="footerSuffix">
 ///   [Optional] This string gives information to the end user about the information
 ///   that is current on display on the page
 /// </param>
 /// <param name="tableHeight">
 ///   [Optional] Height of the table in pixels. Defaults to 200px. Note. Pass in a null if to do not
 ///   want any table height set
 /// </param>
 public DatatableSettings(int displayLength, AASort sortOption, string ajaxSource, string footerSuffix = "",
                          string tableHeight = "200px")
     : this(displayLength, (sortOption == null ? null : new[] { sortOption }), ajaxSource, footerSuffix, tableHeight)
 {
     // nothing to do here
 }