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

    Showing table rows on button click

    I am working on mvc that i am using a html table to display my data from for that i am using list and iterating through foreach all records are now dispaying properly.but now i want to display first 3 records and a show more link at bottom.and on clicking of that button i want to show the whole data.can i do that using jquery?
    i am using the foreach as,
    foreach (Entity.PropertyFinanceSearch item in MovableAssetsList.Take(3))
    to display first 3 records.
    how to do that.any suggestions ??
  • #764349
    Hi Amruta,

    Yes it is possible through jquery.
    You can find a source code and a working demo on following URL:

    Hope this will help you.
    Shashikant Gurav

  • #764401
    Hai Amruta,
    You can simply use show() and Hide() methods to do this.
    Just check for the number of data, if more than 3 then show the link.
    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • Sign In to post your comments