@(Html.Kendo().ComboBox() .Name("classes") .HighlightFirst(true) .Filter("contains") .Placeholder("Select Class...") .HtmlAttributes(new { style = "width: 300px;" }) .Suggest(true) .DataTextField("Name") .DataValueField("Id") .DataSource(source => source.Read(read => read.Action("GetClassList", "RCS"))).AutoBind(true)) @(Html.Kendo().ComboBox() .Name("vendorsforClass") .CascadeFrom("classes") .AutoBind(false) .Value("Select Vendor...") .HtmlAttributes(new { style = "width: 300px;" }) .DataTextField("Name") .DataValueField("Id") .Events(e => { e.DataBound("vendorForClassChangeEvent")}) .DataSource(source => { source.Read(read => { read.Action("GetVendorListByClass", "RCS").Data("filterProducts"); }).ServerFiltering(true); })) <script type="text/javascript"> function vendorForClassChangeEvent() { alert('here'); var combobox = $("#vendorsforClass").data("kendoComboBox"); combobox.open(); } function filterProducts() { return { classes: $("#classes").val() }; }<script id="employeesTemplate" type="text/kendo-tmpl">
@(Html.Kendo().TabStrip()
.Name("TabStrip_#=ReqId#")
.SelectedIndex(0)
.Items(items =>
{
items.Add().Text("Exposure Scenarios").Content(@<text>
@(Html.Kendo().Grid<Sypol.Matcon.Infrastructure.Models.ExpScen>()
.Name("Orders_#=ReqId#")
.Columns(columns =>
{
columns.Bound(o => o.ExpId).Width(101);
columns.Bound(o => o.Quantity).Width(140);
columns.Bound(o => o.Freq).Width(200);
columns.Bound(o => o.Number);
columns.Bound(o => o.ContCode);
columns.Bound(o => o.SubCont);
//columns.ForeignKey(o => o.EXPID, (IEnumerable)ViewData["activities"], "EXPID", "METHOD");
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("HierarchyBinding_Orders", "InTray", new { reqID = "#=ReqId#" }))
)
.AutoBind(true)
.ToClientTemplate())
</text>
);
items.Add().Text("Details").Content(
"<div class='employee-details'>" +
"<ul>" +
"<li><label>Code:</label>#= ExpId#</li>" +
"</ul>" +
"</div>"
);
})
.ToClientTemplate())
</script>
I basically want to fill the 'Details' tab with data from the selected row on the grid. At the moment I can only manage to add data from the Parent grid. Is it possible to do this or would I have to create another details template to get this information?