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

[Solved] Hierarchical Ajax Grid complex key doesn't show children data

0 Answers 22 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tzvi Gregory
Top achievements
Rank 1
Tzvi Gregory asked on 19 Jul 2011, 07:02 PM
Hello , I'm trying out your grid.
I have a big problem , I'm trying to show children results hierarchicaly but no luck with that .
Here is my code :
 <%= Html.Telerik().Grid<Egged.Tnua.Definition.Infra.Entities.Sample>()
    .Name("Samples")
          .Columns(columns =>
          {
              columns.Bound(e => e.Makat).Width(30);
              columns.Bound(e => e.Chalufa).Width(10);
              columns.Bound(e => e.DateCreate).Width(50);
             
          }) 
           .ClientEvents(events => events.OnRowDataBound("samples_onRowDataBound"))
            .DetailView(details => details.ClientTemplate(
                Html.Telerik().Grid<Egged.Tnua.Definition.Infra.Entities.BusStation >()
                    .Name("BusStations_<#= Id #>_ <#= CreationDate #>")
                    .Columns(columns =>
                    {
                        columns.Bound(o => o.Name ).Width(50);
                        columns.Bound(o => o.CityName).Width(50);
                        columns.Bound(o => o.QuarterName).Width(50);
                        columns.Bound(o => o.StationTypeName).Width(50);
                        columns.Bound(o => o.EntranceTypeName).Width(50);
                    })
                    .ClientEvents(events => events.OnRowDataBound("busStations_onRowDataBound"))
                              .DataBinding(dataBinding => dataBinding.Ajax().Select("_BusStationsHierarchyAjax""Sample"new
                                 {
                                 Id =
                                     "<#= Id #>",
                                  CreationDate =
                                     "<#= CreationDate #>"
                             }))
                         .Pageable()
                         .Sortable()
                         .Filterable()
                         .ToHtmlString()
    ))
    .DataBinding(dataBinding => dataBinding.Ajax().Select("_SamplesHierarchyAjax""Sample"))
    .Pageable(paging => paging.PageSize(5))
    .Scrollable(scrolling => scrolling.Height(580))
%>

as you can see I am trying to approach by complex key .
Is there a solution for it ?
Tags
General Discussions
Asked by
Tzvi Gregory
Top achievements
Rank 1
Share this question
or