Need some help with CListView.
In this widget exists a property beforeAjaxUpdate, just like in CGridView but
with one difference – this property invokes JS function with only one param ID
of widget:
function(id)
But in CGridView this function has two params, the second is OPTIONS of AJAX request:
function(id, options)
So, does anyone know how to realize the same functionality of beforeAjaxUpdate with two options in JS function of CListView?
If you are looking at giving additional options for the ajax request, there are 2 options in my opinion:
Either use the members provided by the Class to set the options :
http://www.yiiframework.com/doc/api/1.1/CGridView#properties
Or extend CListView and adjust https://github.com/yiisoft/yii/blob/1.1.13/framework/zii/widgets/CListView.php#L230
so you can load extra options yourself.
The way this is written made it so that all the common oprions can be set with public members of the class.