Formatting CjuiAutocomplete results

Hi All,

I’ve been using the CJuiAutocomplete widget with no problems at all.

However, I need to change the way results are being displayed: It always shows the list of results below the input text field as shown in the attached image, but I need the results to be shown in a table somewhere else in the page. Also, I should be able to add some formatting to that table, like column names, alternative colors in rows…

Does anyone know how to do that? I suppose there must be a property of the CJuiAutocomplete widget that I need to modify??

The code I’m using in the view is as follows:


<?php

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

    'name'=>'city',

    'source'=>array('ac1', 'ac2', 'ac3'),

    // additional javascript options for the autocomplete plugin

    'options'=>array(

        'minLength'=>'2',

    ),

    'htmlOptions'=>array(

        'style'=>'height:20px;'

    ),

));

?>

Thanks in advance for your help!!

Alejandro.