Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


ComponentArt DataGrid MVC - open partial view inside grid row/cell

Posted on 2011-05-12
Medium Priority
Last Modified: 2012-05-11
I need to open a partial view, when the user clicks on the grid row say for like a hierarchy master detail.  the master row - when clicked, needs to cause a detail partial view to be rendered in / below the master row.  We are using the component art ui mvc 2011 datagrid for the master/detail gird.  The partial view, will be having its own datagrid with  autonomous paging and server calls to get data.
Question by:jparlato
  • 2

Accepted Solution

jparlato earned 0 total points
ID: 35786167
I have been able to accomplish this.  Here is how I did it.  I created a partial view with a that has a griddata control in it.  Then, in the page with the master details grid, when the operator click on the expand icon, a javascript function is called the calls the controller for the partiview / action.  This is reutned as data from a jquery ajax call.  The view (data) is then placed in a div in the master detail grid row, and appears as a sub grid to the master grid.  The real trick was paging... I left the partial view as run client side.  The first page/view contains just x lines per page.  I created my own jquery slider control for paging the sub grid... then when the slider selects a page, it calls a second javascript function (similar to the first) that again calls the controller action for the partial view with the skip, take information.  The vew, sub grid is re-rendered and replaced in the master detail div - with the new page of data.  This allows me to do lazy loading of sub grids with master detail information...
And - it works.

Author Closing Comment

ID: 35786171
No one else commented.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question