Hightlight search terms in CGridView

Hi all!

How can I highlight words that were searched for in CGridView?

The easiest way to highlight words is to use a JS lib like this one. I did this in a few dozens of PHP code lines.

There are ready-made extensions for Yii that wrap such libs in PHP. A simple search gave me djqueryhighlight.

François, thanks for your answer.

Using djqueryhighlight extention.

I’m trying to search a column named “description”, so I’m passing search term to the widget in the view file like this (see line 4):




$this->widget('ext.jQueryHighlight.DJqueryHighlight', array(

    'selector' => '.grid-view',

    'words' => array($model->description)

));



It works. I just want to know: am I doing it the right YII way?

Hello sir, is this possible p lease help me sir

i need to dispaly the search ckeyword results highlight in the cgridview

please send me the procudew what you foolow the

thanks

subbu vemuri