Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Basically, I am looking for the MVC version of this demo:

http://demos.telerik.com/kendo-ui/grid/filter-menu-customization[^]

Here is what I currently have

C#
.Columns(columns =>
        {
            columns.Bound(e => e.ID)
                .Hidden();
            columns.Bound(e => e.SearchFunctionCode)
                .Hidden();
            columns.Bound(e => e.SearchFunctionDesc)                
                .Title("Search Function")
                .Filterable( *** WHAT GOES HERE? *** )
                .HtmlAttributes(new { style = "text-align: center" })
                .HeaderHtmlAttributes(new { style = "text-align: center" });


Do I still reference the javascript?

JavaScript
<script type="text/javascript">
    function SearchFunctionFilter(element) {
        element.kendoDropDownList({
            dataSource: searchfunctions(),
            optionLabel: "--Select Value--"
        });
    }
</script>


I'm looking to make one specific column filterable. And I would like to limit the column options (when editing/adding) to the elements available in the filter. I'm still researching, but I think I need to use the UIHint with a new editor template, and a Html.DropDownListFor
Posted
Updated 30-May-14 7:55am
v2

1 solution

.Filterable(f => f.Extra(false))
 
Share this answer
 
Comments
littleGreenDude 30-May-14 13:56pm    
I'm looking to make one specific column filterable. And I would like to limit the column options (when editing/adding) to the elements available in the filter. I'm still researching, but I think I need to use the UIHint with a new editor template, and a Html.DropDownListFor

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900