This is a migrated thread and some comments may be shown as answers.

[Solved] MVC Grid filter icon problem

1 Answer 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian
Top achievements
Rank 1
Brian asked on 17 Jan 2011, 08:25 PM
I have a problem with the Telerik MVC Grid I am using in that the filter icon for each column is displayed but when you click on it nothing happens.  It seems like its an image with no link.  I have encountered this before and found a fix for it but it was a long time ago and I can't remember what the fix is.  Has anyone else encountered this?  I will post my code for reference.  Thanks. 

<% Html.Telerik().Grid(Model.childGridData)        
        .Name("Children").HtmlAttributes(new { style = "width:99%;" })
        .CellAction(cell => { cell.HtmlAttributes["style"] = "font-family:Arial;font-size:12px;margin:0px;"; })
        .DataKeys(keys => keys.Add(c => c.ba_Object_Id))
        .Columns(columns =>
        {
            columns.Bound(o => o.Description).Title("Description").Width(180);
            columns.Bound(o => o.Coded).Title("Coded");          
            columns.Bound(o => o.Type).Title("Type");
            columns.Bound(o => o.Plan).Title("Plan");
            columns.Bound(o => o.Status).Title("Status");
            columns.Bound(o => o.Rule).Title("Rule").Format("{0:MM/dd/yyyy}");
            columns.Bound(o => o.Variable_Type).Title("ba_object_id");
            columns.Bound(o => o.ba_Object_Type_Id).Title("ba_object_type_id");
            columns.Bound(o => o.Accumulation_String).Title("Acm Str");
            columns.Bound(o => o.Master_Fee).Title("MasterFee");
            columns.Bound(o => o.COB).Title("COB");
            columns.Bound(o => o.HAI).Title("HAI");
            columns.Bound(o => o.MDE).Title("MDE");
            columns.Bound(o => o.Product).Title("Product");
    })
                   .Pageable(p => p.PageSize(20))
                       .Filterable()
                       .Sortable()                       
                       .Scrollable((scroll) =>
                       {
                           scroll.Enabled(true).Height(200);
                       }).Render();
        
%>

1 Answer, 1 is accepted

Sort by
0
dpn
Top achievements
Rank 1
answered on 17 Apr 2011, 08:10 PM
If you have not found out yet, see this post:
http://www.telerik.com/community/forums/aspnet-mvc/grid/filter-on-mvc-grid-not-working.aspx
Tags
Grid
Asked by
Brian
Top achievements
Rank 1
Answers by
dpn
Top achievements
Rank 1
Share this question
or