# C1.Data.ClientView-1.ProgressiveLoading

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Data_ClientView_1_ProgressiveLoading_" data-uid="C1.Data.ClientView`1.ProgressiveLoading*">ProgressiveLoading Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Data_ClientView_1_ProgressiveLoading_" data-uid="C1.Data.ClientView`1.ProgressiveLoading*"></a>
<h4 id="C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32_" data-uid="C1.Data.ClientView`1.ProgressiveLoading``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Int32)">ProgressiveLoading&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, int)</h4>
<div class="markdown level1 summary"><p>Specifies that the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> loading is performed not in a single trip to the server but
in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ProgressiveView&lt;T&gt; ProgressiveLoading&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt; sortKeySelector, int loadSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ProgressiveLoading(Of TKey)(sortKeySelector As Expression(Of Func(Of T, TKey)), loadSize As Integer) As ProgressiveView(Of T)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, TKey&gt;&gt;</td>
      <td><span class="parametername">sortKeySelector</span></td>
      <td><p>A function specifying a sort key.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">loadSize</span></td>
      <td><p>The size of the page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Data.ProgressiveView-1.html">ProgressiveView</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="C1.Data.ProgressiveView-1.html">client view</a> that loads the same entities as the source view but does it progressively.</p>
</td>
    </tr>
  </tbody>
</table>
<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">TKey</span></td>
      <td><p>The type of the sort key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Sorting is required, loading entities progressively is impossible without sort.</p>
</div>


<a id="C1_Data_ClientView_1_ProgressiveLoading_" data-uid="C1.Data.ClientView`1.ProgressiveLoading*"></a>
<h4 id="C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32_" data-uid="C1.Data.ClientView`1.ProgressiveLoading``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Boolean,System.Int32)">ProgressiveLoading&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, bool, int)</h4>
<div class="markdown level1 summary"><p>Specifies that the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> loading is performed not in a single trip to the server but
in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ProgressiveView&lt;T&gt; ProgressiveLoading&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt; sortKeySelector, bool ascending, int loadSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ProgressiveLoading(Of TKey)(sortKeySelector As Expression(Of Func(Of T, TKey)), ascending As Boolean, loadSize As Integer) As ProgressiveView(Of T)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, TKey&gt;&gt;</td>
      <td><span class="parametername">sortKeySelector</span></td>
      <td><p>A function specifying a sort key.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ascending</span></td>
      <td><p>A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">loadSize</span></td>
      <td><p>The size of the page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Data.ProgressiveView-1.html">ProgressiveView</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="C1.Data.ProgressiveView-1.html">client view</a> that loads the same entities as the source view but does it progressively.</p>
</td>
    </tr>
  </tbody>
</table>
<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">TKey</span></td>
      <td><p>The type of the sort key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Sorting is required, loading entities progressively is impossible without sort.</p>
</div>
</div>
