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

[Solved] Filter button is inactive

1 Answer 29 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.
Roman
Top achievements
Rank 1
Roman asked on 20 Apr 2011, 03:58 PM
Hello.

I have a problem with filtering. For some reason I see filtering icon but I can do nothing with it. Even when I move mouse over that icon or click on it nothing happens.

I thought the problem with missed javascript files but I tried to add all of telerik javascript files and had the same result. Filter button is still inactive.

Can you help me with that?

<%  Html.Telerik().Grid<User>(Model.List)
                .Name("Grid")
                .DataKeys(keys => keys.Add(col => col.Id))
                .Columns(columns =>
                             {
                                 columns.Bound(o => o.UserName).Title("User Name");
                                 columns.Bound(o => o.FirstName);
                                 columns.Bound(o => o.LastName);
                                 columns.Bound(o => o.Email);
                                 columns.Template(col =>
                                                      {%>
                                                            <a href="/Adm/Form.aspx?Name=<%=Model.Name %>&userId=<%=col.UserId %>&Id2=<%=Model.Id2 %>">
                                                                show report
                                                            </a>
                                                      <%}%><% ).Title("");
                             })
                .Sortable()
                .Filterable(filtering=>filtering.Enabled(true))
                .Pageable(o => o.PageSize(20))
                .Render();%>

Regards,
Roman

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 18 Jan 2012, 03:16 PM
*BUMP*

Having the same issue, was this ever resolved or did you find out why it wasn't working?

Thanks.

EDIT: Solution

For future reference, I had this bug using the Razor engine.

<%= Html.Telerik().... commands must be replaced with @Html.Telerik() commands.

Interesting enough, I only found the Filter button to break.


Cheers,
Andrew
Tags
Grid
Asked by
Roman
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or