Hello,
i am using Vs2012,kendo 2013.1.154 version,
and i want it to do the dropdown cascade example,and it gives me in firebug,that he doesn't know that javascript function put as filter
the error message is : filterProducts is not defined
here is my view
<div class="demo-section">
<h2>View Order Details</h2>
<p>
<label for="categories">Catergories:</label>
@(Html.Kendo().DropDownList()
.Name("groups")
.HtmlAttributes(new { style = "width:300px" })
.OptionLabel("Select group...")
.DataTextField("Name")
.DataValueField("pkTallyGroup")
.DataSource(source => {
source.Read(read => {
read.Action("GetCascadeGroups", "Employees");
});
})
)
</p>
<p>
<label for="subgroups">Products:</label>
@(Html.Kendo().DropDownList()
.Name("subgroups")
.HtmlAttributes(new { style = "width:300px" })
.OptionLabel("Select subgroup...")
.DataTextField("Name")
.DataValueField("pkTallySubGroup")
.DataSource(source => {
source.Read(read =>
{
read.Action("GetCascadeSubgroups", "Employees")
.Data("filterProducts");
})
.ServerFiltering(true);
})
.Enable(false)
.AutoBind(false)
.CascadeFrom("groups")
)
<script>
function filterProducts() {
return {
groups: $("#groups").val()
};
}
</script>
</p>
</div>
what should be the problem?or do i need to set something in VS2012 to see the scripts in the same page?
Regards,
Daniel
i am using Vs2012,kendo 2013.1.154 version,
and i want it to do the dropdown cascade example,and it gives me in firebug,that he doesn't know that javascript function put as filter
the error message is : filterProducts is not defined
here is my view
<div class="demo-section">
<h2>View Order Details</h2>
<p>
<label for="categories">Catergories:</label>
@(Html.Kendo().DropDownList()
.Name("groups")
.HtmlAttributes(new { style = "width:300px" })
.OptionLabel("Select group...")
.DataTextField("Name")
.DataValueField("pkTallyGroup")
.DataSource(source => {
source.Read(read => {
read.Action("GetCascadeGroups", "Employees");
});
})
)
</p>
<p>
<label for="subgroups">Products:</label>
@(Html.Kendo().DropDownList()
.Name("subgroups")
.HtmlAttributes(new { style = "width:300px" })
.OptionLabel("Select subgroup...")
.DataTextField("Name")
.DataValueField("pkTallySubGroup")
.DataSource(source => {
source.Read(read =>
{
read.Action("GetCascadeSubgroups", "Employees")
.Data("filterProducts");
})
.ServerFiltering(true);
})
.Enable(false)
.AutoBind(false)
.CascadeFrom("groups")
)
<script>
function filterProducts() {
return {
groups: $("#groups").val()
};
}
</script>
</p>
</div>
what should be the problem?or do i need to set something in VS2012 to see the scripts in the same page?
Regards,
Daniel