This question is locked. New answers and comments are not allowed.
We have a hierarchy of 2 levels (for now). First level gets listed fine, but expanding to second level works very strange regarding fetching of data.
1. If I expand the first row, that row will expand and fetch data, but no other rows will be able to fetch data.
2. If I expand row 8, I'm able to expand row 7, then row 6 etc (which fetch data and works ok). But not row 9! So the rule seems that you cannot retrieve data if you expand a row after the one you just expanded.
GRID LAYOUT
CONTROLLER
1. If I expand the first row, that row will expand and fetch data, but no other rows will be able to fetch data.
2. If I expand row 8, I'm able to expand row 7, then row 6 etc (which fetch data and works ok). But not row 9! So the rule seems that you cannot retrieve data if you expand a row after the one you just expanded.
GRID LAYOUT
@(Html.Telerik().Grid<PlantDto>() .Name("Plants") .Columns(columns => { columns.Bound(plant => plant.Title); }) .DetailView(details => details.ClientTemplate(Html.Telerik().Grid<ProjectDto>().Name("Projects" + Guid.NewGuid()) .Columns(columns => { columns.Bound(p => p.Name).Width(101); columns.Bound(p => p.Description).Width(140); }) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_ProjectsForPlant", "User", new { plantId = "<#= Id #>" })) .Pageable() .Sortable() .ToHtmlString() ) ) .Pageable(paging => paging.PageSize(10)) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_PlantList", "User", new { id = Model.UserId })) )CONTROLLER
[GridAction] public ActionResult _PlantList(long id) { var viewModel = UserAccessEditViewModel.CreateViewModel(_personService, id); return View(new GridModel(viewModel.Plants.OrderBy(p => p.Title))); } [GridAction] public ActionResult _ProjectsForPlant(string plantId) { var projects = _projectService.FindProjectsBelongingToPlant(plantId); return View(new GridModel(projects)); }