Can I disable ajax Update in CGridView only on Internet Explorer < 10?
Asked
Active
Viewed 135 times
0
-
Browser detection is [commonly frowned upon](http://stackoverflow.com/questions/1294586/browser-detection-versus-feature-detection). What is your aim here? Perhaps feature detection is a better way to approach the problem? – Jon Apr 25 '13 at 10:15
2 Answers
0
You can get IE version manualy and add use in widget:
$isIE10 = !preg_match('/(?i)msie [1-9]/',$_SERVER['HTTP_USER_AGENT']);
$this->widget('zii.widgets.grid.CGridView', array(
.................
'ajaxUpdate' => ($isIE10?'id':false),
.................
));

Narek
- 3,813
- 4
- 42
- 58