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

    Table with checkboxes to persist state when paging

    I have a table with a list of checkbox.At the top there is a 'Select All' checkbox.the select all checkbox is not holding the data ,when I navigate to other pages.I need the select all checkbox to hold the data when navigating to other pages ( as done in gmail).I am using mvc 2.0?

    Can anyone help me with this in javascript,jquery or in mvc 2.0?
  • #768203
    Hai Anu Mary,
    If you are working the ASP.Net MVC, there is no concept called as persistent. Here always the view is populated rather than rendered(in ASP.Net).
    So you want to get the check-boxes selected again, you need to keep the values in some object and populate with the view again. You need to keep the model as the mediator object which can hold the data when you are moving back and you ca use the same model to populate the view again.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


Sign In to post your comments