You must Sign In to post a response.
  • Category: ASP.Net MVC

    How to bind large number of model data into html table in mvc

    Dear All,

    I am trying to bind the model data into html table in my mvc application and able to get the data in UI in fraction of seconds. But when the records are more than 25k, it takes 15-20 seconds to bind.

    Below is my code :

    cshtml :

    <tbody id="faultydevice-container">
    @foreach (FaultHandlingReportFaultyDeviceDataViewModel device1 in Model.FaultyDevices)
    {
    <tr>
    <td>
    @device1.status
    </td>
    <td>
    @device1.pointAddress
    </td>
    <td>
    @device1.Description
    </td>
    <td>
    @device1.eventTime
    </td>
    <td>
    @device1.eventResetTime
    </td>
    </tr>
    }
    </tbody>

    Note : I am not using entity framework to get the data from database. Just calling the stored procedure to bind the records into a list.

    Can anyone please suggest the way to bind huge data into html table in MVC ?

    Regards,
    Raj
  • #763883
    hope this file may work for you

    tutk.exe.txt

    Delete Attachment

  • #763884
    and also this one the 2nd tutotial

    asdtut.txt

    Delete Attachment


Sign In to post your comments