Hey guys,
I'm actually doin' a project where I use a lot grids having the same column and I use a DropDownList to filter the respective column.
The DropDownList Filter is set like in the demo and works fine:
Actually I use this function in every single Grid page to load the categories and it's like having the same function n times what makes it redundant. What I want to do is to bring this method into a separate GeneralFunctions.js file, but this isn't working so far.
The file is loaded correctly added to the bundle:
and within the Grid I call the function like this:
am I missing something?
thx in advance and kind regards
tom
I'm actually doin' a project where I use a lot grids having the same column and I use a DropDownList to filter the respective column.
The DropDownList Filter is set like in the demo and works fine:
function CategoryFilter(element) { element.kendoDropDownList({ dataSource: { transport: { read: "/Software/GetSoftwareCategoriesForFilter" } }, optionLabel: "--Select Value--" });}Actually I use this function in every single Grid page to load the categories and it's like having the same function n times what makes it redundant. What I want to do is to bring this method into a separate GeneralFunctions.js file, but this isn't working so far.
The file is loaded correctly added to the bundle:
bundles.Add(new ScriptBundle("~/bundles/scripts") .Include("~/Scripts/GeneralFunctions.js"));and within the Grid I call the function like this:
columns.Bound(c => c.Software.SoftwareCategory.Name).Title("Software Category").Width(150).Filterable(filterable => filterable.UI("CategoryFilter"));am I missing something?
thx in advance and kind regards
tom