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

[Solved] Filter is not working within the form

2 Answers 53 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.
Akzhol The Kyrgyz
Top achievements
Rank 1
Akzhol The Kyrgyz asked on 10 Jan 2010, 04:53 PM
Filter functionality of the grid is not working within the form.

i.e.

Html.Telerik().Grid<Service>()....

works,  but following does NOT

<form method="post">
<% Html.Telerik().Grid<Service>() ....
 </form>

Is it bug or am I doing something wrong?
I need the FORM arround, since I'm extending grid's  functionality and adding toolbar to the grid.

Thanks.






2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 11 Jan 2010, 10:12 AM
Hello A A,

You are right. I was able to reproduce the bug and we managed to fix it quickly. To fix it in your code open telerik.grid.filtering.js and locate the following code (it may look differently if you open telerik.grid.filtering.min.js):

this.createFilterMenu(column)
        .data('column', column)
        .click(function(e) { e.stopPropagation();})

Now change that code to this:

$filterMenu = this.createFilterMenu(column)
                        .data('column', column)
                        .click(function(e) { e.stopPropagation(); e.preventDefault(); })

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Akzhol The Kyrgyz
Top achievements
Rank 1
answered on 11 Jan 2010, 10:46 AM
Thank you very much for your quick support.

Tags
Grid
Asked by
Akzhol The Kyrgyz
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Akzhol The Kyrgyz
Top achievements
Rank 1
Share this question
or