PDA

View Full Version : [CLOSED] Cannot Paginate GridPanel on Asp.net Core Grid



Nmicros
Nov 28, 2020, 11:41 AM
Below is the mark up for my grid panel, however it is not paginating the results on the grid.



<ext-gridPanel title="Tasks" height="350" frame="true">
<store>
<ext-store pageSize="10" data="Model.GetData">
<fields>
<ext-integerDataField name="Id" />
<ext-dataField name="TaskName" />
<ext-dataField name="Description" />
<ext-dataField name="Status" />
<ext-booleanDataField name="isActive" />
</fields>
</ext-store>
</store>
<columns>
<ext-column text="Id" dataIndex="Id" />
<ext-column text="TaskName" dataIndex="TaskName" flex="1" />
<ext-column text="Description" dataIndex="Description" />
<ext-column text="Status" dataIndex="Status" />
<ext-column text="IsActive" dataIndex="isActive" />
</columns>
</ext-gridPanel>

fabricio.murta
Nov 30, 2020, 8:19 PM
Hello @Nmicros, and welcome to Ext.NET Forums!

I have edited your message to indent and place the code block you shared between
block delimiters.

The following sample demonstrates configuring a GridPanel with local paging.



<ext-gridPanel title="Tasks" height="350" frame="true">
<store>
<ext-store pageSize="10" data="Model.GetData">
<fields>
<ext-integerDataField name="Id" />
<ext-dataField name="TaskName" />
<ext-dataField name="Description" />
<ext-dataField name="Status" />
<ext-booleanDataField name="isActive" />
</fields>
<proxy>
<ext-memoryProxy enablePaging="true" />
</proxy>
</ext-store>
</store>
<columns>
<ext-column text="Id" dataIndex="Id" />
<ext-column text="TaskName" dataIndex="TaskName" flex="1" />
<ext-column text="Description" dataIndex="Description" />
<ext-column text="Status" dataIndex="Status" />
<ext-column text="IsActive" dataIndex="isActive" />
</columns>
<bbar>
<ext-pagingToolbar />
</bbar>
</ext-gridPanel>


Hope this helps!

Nmicros
Dec 01, 2020, 8:41 PM
Thanks, this has worked

fabricio.murta
Dec 01, 2020, 10:45 PM
Hello @Nmicros!

Glad it worked, thanks for the feedback!