fooplugins / FooTable

jQuery plugin to make HTML tables responsive
https://fooplugins.com/plugins/footable-jquery/
Other
2.13k stars 638 forks source link

Foo Table Pagining Not working #654

Open abcdef1234999 opened 7 years ago

abcdef1234999 commented 7 years ago

Hi Friends,

i am trying to implement Foo Table paging for my ASP.NET MVC application.

In controller i retrieve data from Stored Proc of DB via EntityFramework and pass on to view.

In view i bind HTML table with Foo table plug-in.

I see that Foo table is able to display records on 1st page. When i click on 2nd page link in bottom-pager, data do not get showed-up on 2nd page.

Also if when i come back on 1st page (by clicking on 1st page link), i cannot see initial data.

Below is my Controller Code:

    public ActionResult Test()
    {
        using (Development_Entities entities = new Development_Entities())
        {
            var Result = entities.GetAllMembers().ToList();

            return View("Test", Result);
        }
    }

Below is my View Code:

@foreach (var item in Model) { }
Member_ID FirstName
@Html.DisplayFor(modelItem => item.Member_ID) @Html.DisplayFor(modelItem => item.FirstName)

Can you please tell me where i am wrong ?

Thanks in advance Dev

NashBridgesAT commented 7 years ago

+1 Have you found a solution for that? i am facing the same problem, but only when i supply the options by javascript. concerns no only paging, but filtering as well, sorting is working this way...