"$.fn.yiilistview.update" From Widget Does Not Work!

[size=“4”]I’m trying to make a search inputBox and display the result into a list view via AJAX.[/size]

After a lot of research I found this tutorial: CListView AJAX filtering

After try it, on a normal Controller > View, it works perfectly!

[color="#008000"]But I would like to make a portable version of this search by making a widget.[/color]

This is where things get bad.



class ImageManager extends CInputWidget


        public function run($search = "") 


                $criteria = new CDbCriteria();




		return new CActiveDataProvider('Media',







                $this->render("index", array(    








        "var ajaxUpdateTimeout;

        var ajaxRequest;


            ajaxRequest = $(this).serialize();


            ajaxUpdateTimeout = setTimeout(function () {



                    {data: ajaxRequest}







 <input id="search" name="search" type="text" class="search-query col-md-6 pull-right " placeholder="Search">


$this->widget('zii.widgets.CListView', array(






[color="#0000FF"]What I expect:[/color]

To render my listview, enter a string to search and the listview will update with my new list found.

[color="#0000FF"]What I get:[/color]

The listview renders, when I enter a search string, I can see the update process animation but after the search is done, I still see the same list. No changes.

Please note: When the SAME functions are used with a normal controller>view it works like a charm.


[color="#008000"]Why the $.fn.yiiListView.update() doesn’t fetch and display the proper item via a widget!?[/color][/size]

Any insight would be greatly appreciated O0