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>
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>