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

x
?
Solved

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

Posted on 2011-05-12
2
Medium Priority
?
1,295 Views
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.
0
Comment
Question by:jparlato
  • 2
2 Comments
 

Accepted Solution

by:
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.
0
 

Author Closing Comment

by:jparlato
ID: 35786171
No one else commented.
0

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