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

Grid Detail Template (Grid within TabStrip)

2 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 11 Aug 2014, 09:55 PM
Hi,

Having an issue passing the ID of the parent Grid to a  grid which is contained inside  a TabStrip.
The TabStrip Name shows the ID properly. Ex. tabStrip_12345678. Followed the provided examples but having no luck. Would appreciate some help!


<script id="template" type="text/kendo-tmpl">   
# var myID = bdc_leaseamenityId #   //used this to make sure the id was correct   
# alert(bdc_leaseamenityId) #  //returned the correct id

        @(Html.Kendo().TabStrip()
            .Name("tabStrip_#=bdc_leaseamenityId#")
            .SelectedIndex(0)
            .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
            .Items(items =>
            {
                items.Add().Text("Notes").Content(@<text>

                    <div>
                        @(Html.Kendo().Grid<MvcDealFlow.Models.EcoAnalysis>()
                               
                        .Name("tabgrid_#=bdc_leaseamenityId#")
                        .Columns(columns =>
                        {

                            columns.Bound(o => o.subject).Width(190);
                        })
                        .DataSource(dataSource => dataSource
                            .Ajax()
                            .PageSize(5)
                            .Read(read => read.Action("GetNotes", "EcoAnalysis", new { id = "#=bdc_leaseamenityId#" }))
                        )
                        .Pageable()
                        .Sortable()
                        
                        .ToClientTemplate())
                        
                    </div>
                </text>
                );
               
            })
                                        .ToClientTemplate())
      
    </script>

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 12 Aug 2014, 07:43 AM
Hi Michael,


From the provided information it is not clear what is causing the issue. The code seems to be correct, as demonstrated in our Detail Template demo. If the issue is still persisting, please send us a small isolated project, in which it is reproducing, so we could inspect it further and provide assistance.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Michael
Top achievements
Rank 1
answered on 13 Aug 2014, 09:14 PM
Dimiter,

Thanks for the reply. Indeed the code was correct. Had a few lines of code for another function that was causing the problem. 

Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Michael
Top achievements
Rank 1
Share this question
or