return new CActiveDataProvider($this, array( 'criteria'=>$criteria, 'sort'=>$sort, 'sort'=>array( 'defaultOrder'=>'columnName DESC', ) ));
Page 1 of 1
Yii Cgridview Order By Column Default cgridview display results order by coulmn default
#1
Posted 15 March 2013 - 05:58 AM
#2
Posted 15 March 2013 - 10:05 AM
Dear Friend
You have just displayed a snippet of code.
What do you expect from the forum members?
Is it a working code and you want to display as a tip to forum?
or
You are having any trouble with the code.
You have just displayed a snippet of code.
What do you expect from the forum members?
Is it a working code and you want to display as a tip to forum?
or
You are having any trouble with the code.
#3
Posted 16 March 2013 - 01:05 AM
seenivasan, on 15 March 2013 - 10:05 AM, said:
Dear Friend
You have just displayed a snippet of code.
What do you expect from the forum members?
Is it a working code and you want to display as a tip to forum?
or
You are having any trouble with the code.
You have just displayed a snippet of code.
What do you expect from the forum members?
Is it a working code and you want to display as a tip to forum?
or
You are having any trouble with the code.
hi friend i just learned this. i posted this code to tip for new yii members.
#4
Posted 16 March 2013 - 02:10 AM
/* Moved from "General Discussion for Yii 1.1.x" to "Tips, Snippets and Tutorials" */
#5
Posted 16 April 2013 - 10:16 AM
thank you!!!
very useful for me
i add this code if you want only give sorting capability to a column
Best Regards!!!
very useful for me
i add this code if you want only give sorting capability to a column
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
'sort'=>array(
'attributes'=>array(
'columnName',
),
),
));
Best Regards!!!
Share this topic:
Page 1 of 1

Help











