CGridView column sort: blanks screen

I’m creating a module with an action which displays a view with a CGridView.

This part goes fine.

When I click on a column header to sort by that column it blanks the gridView.

I can’t figure out what’s happening.


<?php $this->widget('zii.widgets.grid.CGridView', array(










)); ?>


public function actionList()


	$users=new WUserModel();



	$criteria=new CDbCriteria;


	$collection=new CActiveDataProvider('WUserModel',array(














The problem only happens when I have javascript enabled.

If I disable it in my browser, everything works fine.

Any clue?

Please, can anyone give me a hint of what to look for?

I have absolutely no idea where to start or what to look for.

Maybe you should do what I do.

public function actionIndex() {

    &#036;model=new User('search');








$this->widget(‘GridView’, array(



'selectableRows' =&gt; 100,






NOTICE: Mandy, please use code tag (second button to the right), when pasting code examples, so it will be more readable by others.

If you disable JavaScript then filtering/searching/sorting/pagination goes through normal request and that is why it is working.

If you have a problems like you described then I would rather start looking for your browsers configuration. I’m not sure but it seems that something is blocking your AJAX (JS) requests. Have you tried to run your website under other browser or even better - from another computer? Have you tried if sorting works in a freshly generated application to make yourself sure that error isn’t in your own code?