Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 227223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:34:50+00:00 2026-05-11T19:34:50+00:00

I have a grid that contains Contacts. It automatically shows contacts when people go

  • 0

I have a grid that contains Contacts. It automatically shows contacts when people go to the /contacts/ URL. In a separate box, people can filter those by different criteria. I want to refresh only the grid, not the entire page, whenever different criteria are applied.

In order to achieve this, would I put the Contacts Grid by itself in a partial view, and somehow return the partial view via AJAX later?

Please give me a hint in the right direction. Thank you:)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:34:50+00:00Added an answer on May 11, 2026 at 7:34 pm

    The most straightforward method is probably to use the jQuery AJAX API to request the method. You then use the Request.IsAjaxRequest() property in your controller to see if the request was made with AJAX – if so, you return only the PartialView from the Controller action.


    Some code examples:

    In your view, you could have the following markup:

    <div id="gridContainer">
        <% Html.RenderPartial("ContactsGrid", ViewData.Model); %>
    </div>
    

    (assuming your contacts are contained in the Model object, and the view is strongly typed…)
    You then have the following javascript code called when you want to update the grid:

    $('#gridContainer').load('/contacts/', { filterParameter: andItsValue });
    

    You could also append the filter parameter in the URL, if your routes support that.

    In your controller action, you do the following check before returning:

    if(Request.IsAjaxRequest()) {
        return PartialView("ContactsGrid", contacts);
    }
    return View(contacts);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a checkbox that shows/hides a div that contains a grid of radio
I have a parent grid that contains multiple row definitions, all of which have
I currently have a product view page that contains an MVCContrib HTML Grid with
I'm using .NET webforms. I have a grid view that can use Eval(Name) in
I have a class header file called Grid.h that contains the following 2 private
I have a grid in a WPF window, and that contains a label in
I have a custom UIView subclass that contains a grid of cells, each of
I have a window that contains different functional areas of an account. The details,
I have a view with a grid that contains items added to a workstation.
I have a column in a grid that contains dropdown list. The row also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.