# C1.Web.Mvc.BaseCollectionViewService-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_BaseCollectionViewService_1" data-uid="C1.Web.Mvc.BaseCollectionViewService`1" class="text-break">BaseCollectionViewService&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines the base class for all the collectionview services.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><span class="xref">Service</span></div>
    <div class="level3"><span class="xref">BaseCollectionViewService&lt;T&gt;</span></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.html">BaseODataCollectionViewService&lt;T&gt;</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
    <div><a class="xref" href="C1.Web.Mvc.ITemplate.html">ITemplate</a></div>
    <div><a class="xref" href="C1.Web.Mvc.IItemsSource-1.html">IItemsSource</a>&lt;T&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_BaseCollectionViewService_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class BaseCollectionViewService&lt;T&gt; : Service, IHtmlContent, ITemplate, IItemsSource&lt;T&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class BaseCollectionViewService(Of T)
    Inherits Service
    Implements IHtmlContent, ITemplate, IItemsSource(Of T)</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper)">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.-ctor.html#C1_Web_Mvc_BaseCollectionViewService_1__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_">BaseCollectionViewService(IHtmlHelper)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.html">BaseCollectionViewService&lt;T&gt;</a> instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_CalculatedFields" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.CalculatedFields">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.CalculatedFields.html#C1_Web_Mvc_BaseCollectionViewService_1_CalculatedFields">CalculatedFields</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an object where the keys represent calculated fields and the values are expressions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_GetError" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.GetError">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.GetError.html#C1_Web_Mvc_BaseCollectionViewService_1_GetError">GetError</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a callback that determines whether a specific property of an item contains validation errors.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_GroupDescriptions" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.GroupDescriptions">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.GroupDescriptions.html#C1_Web_Mvc_BaseCollectionViewService_1_GroupDescriptions">GroupDescriptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the group descriptions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_NewItemCreator" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.NewItemCreator">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.NewItemCreator.html#C1_Web_Mvc_BaseCollectionViewService_1_NewItemCreator">NewItemCreator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a function that creates new items for the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_OnClientCollectionChanged" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.OnClientCollectionChanged">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.OnClientCollectionChanged.html#C1_Web_Mvc_BaseCollectionViewService_1_OnClientCollectionChanged">OnClientCollectionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the collection changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_OnClientCurrentChanged" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.OnClientCurrentChanged">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.OnClientCurrentChanged.html#C1_Web_Mvc_BaseCollectionViewService_1_OnClientCurrentChanged">OnClientCurrentChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the current item changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_OnClientCurrentChanging" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.OnClientCurrentChanging">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.OnClientCurrentChanging.html#C1_Web_Mvc_BaseCollectionViewService_1_OnClientCurrentChanging">OnClientCurrentChanging</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before the current item changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_OnClientPageChanged" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.OnClientPageChanged">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.OnClientPageChanged.html#C1_Web_Mvc_BaseCollectionViewService_1_OnClientPageChanged">OnClientPageChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the page index changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_OnClientPageChanging" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.OnClientPageChanging">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.OnClientPageChanging.html#C1_Web_Mvc_BaseCollectionViewService_1_OnClientPageChanging">OnClientPageChanging</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before the page index changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_PageIndex" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.PageIndex">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.PageIndex.html#C1_Web_Mvc_BaseCollectionViewService_1_PageIndex">PageIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the page index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_PageSize" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.PageSize">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.PageSize.html#C1_Web_Mvc_BaseCollectionViewService_1_PageSize">PageSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the page size. 0 means to disable paging.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_RefreshOnEdit" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.RefreshOnEdit">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.RefreshOnEdit.html#C1_Web_Mvc_BaseCollectionViewService_1_RefreshOnEdit">RefreshOnEdit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the CollectionView should automatically refresh its results (by applying the sort, filter, and grouping operations) after items are edited.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_ShowDatesAsGmt" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.ShowDatesAsGmt">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.ShowDatesAsGmt.html#C1_Web_Mvc_BaseCollectionViewService_1_ShowDatesAsGmt">ShowDatesAsGmt</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether dates should be adjusted to look like GMT rather than local dates.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_SortDescriptions" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.SortDescriptions">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.SortDescriptions.html#C1_Web_Mvc_BaseCollectionViewService_1_SortDescriptions">SortDescriptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the sort descriptions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_SortNulls" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.SortNulls">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.SortNulls.html#C1_Web_Mvc_BaseCollectionViewService_1_SortNulls">SortNulls</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines how null values should be sorted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_UniqueId" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.UniqueId">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.UniqueId.html#C1_Web_Mvc_BaseCollectionViewService_1_UniqueId">UniqueId</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value which represents the unique id for the control.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_RegisterStartupScript_System_IO_TextWriter_" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.RegisterStartupScript(System.IO.TextWriter)">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.RegisterStartupScript.html#C1_Web_Mvc_BaseCollectionViewService_1_RegisterStartupScript_System_IO_TextWriter_">RegisterStartupScript(TextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Registers the start-up script.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_RenderClientService_System_IO_TextWriter_" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.RenderClientService(System.IO.TextWriter)">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.RenderClientService.html#C1_Web_Mvc_BaseCollectionViewService_1_RenderClientService_System_IO_TextWriter_">RenderClientService(TextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the client service to the specified writer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseCollectionViewService_1_RenderScripts_System_IO_TextWriter_System_Boolean_" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.RenderScripts(System.IO.TextWriter,System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.RenderScripts.html#C1_Web_Mvc_BaseCollectionViewService_1_RenderScripts_System_IO_TextWriter_System_Boolean_">RenderScripts(TextWriter, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the scripts.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
