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

[Solved] Filtering issues IE6

3 Answers 84 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.
sL342799
Top achievements
Rank 1
sL342799 asked on 03 Feb 2010, 01:29 AM
Hi,

I have the latest version of Telerik MVC deployed (2009.3.1320) and am encountering an issue with IE6 and filtering.

My grid and filter menus render correctly (with all icons etc.), however when attempting to filter boolean columns, I can not click on the radio buttons... the filter menu shows up ok, but trying to click the actual radio button fails (doesn't get selected)... any ideas? Tested in Firefox and works great...

Thanks!

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 04 Feb 2010, 09:12 AM
Hello Dunston,

Thank you for drawing our attention to this issue. Indeed there was incorrect using of e.preventDefault(). to fix the problem you should replace this code from showFilter method:

...
if (!$filterMenu) {
                // filtering menu should be created
                var column = this.columns[$element.parent()[0].cellIndex];
             
                $filterMenu = this.createFilterMenu(column)
                        .data('column', column)
                        .click(function(e) { e.stopPropagation(); e.preventDefault(); })
                        .find('.t-filter-button').click($t.delegate(this, this.filterClick)).end()
                        .find('.t-clear-button').click($t.delegate(this, this.clearClick)).end()
                        .find('input[type=text]').keyup($t.delegate(this, this.filterKeyUp)).end();
                 
                $element.data('filter', $filterMenu);
            }
...

with this one:

...
if
(!$filterMenu) {
                // filtering menu should be created
                var column = this.columns[$element.parent()[0].cellIndex];
             
                $filterMenu = this.createFilterMenu(column)
                        .data('column', column)
                        .click(function(e) { e.stopPropagation(); })
                        .find('.t-filter-button').click($t.delegate(this, this.filterClick)).end()
                        .find('.t-clear-button').click($t.delegate(this, this.clearClick)).end()
                        .find('input[type=text]').keyup($t.delegate(this, this.filterKeyUp)).end();
                 
                $element.data('filter', $filterMenu);
            }
...
The difference is marked with bold text. You can find showFilter method in telerik.grid.filtering.js file.

The next step is to prevent default of the clear and filter button of the filter menu. Yo accomplish this task add e.preventDefault() to the clearClick method and to filterClick method like so:

clearClick: function(e, element) {
            e.preventDefault();
            var $element = $(element);
            var column = this.getColumn($element);
...
filterClick: function(e, element) {
            e.preventDefault();
            var $element = $(element);
...

Regards,
Georgi Krustev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
sL342799
Top achievements
Rank 1
answered on 16 Feb 2010, 02:54 AM
Thanks for the quick reply. Is there any way to fix z-index issues with the Filter Menu? The bottom of the menu ends up being tucked behind rows in the grid?

Thanks!
0
Alex Gyoshev
Telerik team
answered on 18 Feb 2010, 01:14 PM
Hi Dunston,

We could not reproduce the described issue with the latest online demos. Can you please provide a sample solution that demonstrates it?

Greetings,
Alex Gyoshev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
sL342799
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
sL342799
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or