payu2107 / zii

Automatically exported from code.google.com/p/zii
0 stars 0 forks source link

CGridView filter in IE8 doesn't work #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. CGridView with filtered columns
2. type some text in a filter field

What is the expected output? What do you see instead?
when you press a key the search starts and filter becomes blank instead to
let me complete the text I want to search...

What version of the product are you using? On what operating system?
Yii 1.1.2 on WindowsXP IE8

Please provide any additional information below.
Problem is in file jquery.yiigridview.js on line 44

#43 // temporary fix for the bug of supporting live change in IE
#44 $(inputSelector).live($.browser.msie ? 'click keyup' : 'change',
function(){

changing #44 to 
$(inputSelector).live('change', function(){

make filters working... but I don't know about live fix comment in line 43

Original issue reported on code.google.com by makr...@gmail.com on 20 May 2010 at 7:11

GoogleCodeExporter commented 8 years ago
I have the exact same issue, but the suggestion did not work for me.  I tried 
on both
XP and Windows 7 and it yields the same result.  

Original comment by Blit...@gmail.com on 7 Jun 2010 at 7:35

GoogleCodeExporter commented 8 years ago
@BlitzJS

remember to delete all in your project assets folder 

Original comment by makr...@gmail.com on 7 Jun 2010 at 8:17

GoogleCodeExporter commented 8 years ago
@makro76

Thanks, that did the trick!  I have no idea what a live change is in that 
context so
please report back any side effects.  

Original comment by Blit...@gmail.com on 7 Jun 2010 at 9:33

GoogleCodeExporter commented 8 years ago
I don't know too... but I made this fix a couple of months ago... and 
everything's fine

Original comment by makr...@gmail.com on 7 Jun 2010 at 9:38

GoogleCodeExporter commented 8 years ago
This is the same thing as http://code.google.com/p/yii/issues/detail?id=1031

I am using a dropdownlist as one of the filters on my CGridView although the 
textbox filters work, the dropdown does not in IE8.

The proposed change was to add focusout but unfortunately that requires you to 
lose focus on the dropdown to apply the filter instead of being able to just 
choose a selection.

Original comment by Blit...@gmail.com on 7 Jun 2010 at 10:53