This is a migrated thread and some comments may be shown as answers.

[Solved] Master with two detail grids

3 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hetal
Top achievements
Rank 1
Hetal asked on 21 Dec 2012, 06:36 AM
Hello

I have requirement of one master having two details grid, with both the detail grids on same level.
So, one master and one detail gets rendered properly. But one master with two details, only renders 2nd one. Not able to render 1st detail grid. Any solution for the same?

3 Answers, 1 is accepted

Sort by
0
Hetal
Top achievements
Rank 1
answered on 31 Dec 2012, 06:50 AM
Solved
0
Hetal
Top achievements
Rank 1
answered on 31 Dec 2012, 09:55 AM
Rendering grid problem solved. But now facing another problem.

When I expand master row, select methods at controller side of both the detail grids executes. But 2nd one returns empty data. So 2nd grid does not show any data.

two methods of detail grids are as follows.
[GridAction]
        public ActionResult Select_Detail(int videoid)
        {
            var detail = db_context.VideoDetails.Where(d => d.VIDEO_ID.Equals(videoid));
            return Json(new GridModel(detail));
       }
[GridAction]
        public ActionResult Select_CatDetail(int videoid)
        {
            var detailcat = db_context.VideoCategories.Where(d => d.VIDEO_ID.Equals(2111));
             return Json(new GridModel(detailcat));
        }
But for 2nd one Json object returned is empty.
0
Hetal
Top achievements
Rank 1
answered on 31 Dec 2012, 10:14 AM
Sorry... its solved...
Tags
Grid
Asked by
Hetal
Top achievements
Rank 1
Answers by
Hetal
Top achievements
Rank 1
Share this question
or