Is it possible to setup a listbox double click event by using the CHtml::ajax property?
e.g:
echo CHtml::activeListBox($model, 'parentId',
CHtml::listData(Category::model()->published()->findAll($criteria), 'id', 'categoryName'),
array(
'size'=>6,
'ajax'=>array(
'event'=>'dblclick', //==========> is there something like this or something that changes the trigger to dblclick instead of click?
'type'=>'POST',
'url'=>Yii::app()->urlManager->createUrl('/category/dynSubcategories'),
'update'=>'#Category_parentId',
)
)
In my Categories form, I want to allow users to navigate among child categories by double-clicking the name of a category and to select the category by single-clicking over it
Is there any way to do this without writing jquery native code, I mean, by using Yii’s built-in classes?
hehe…not at all, zaccaria, actually, yes and no… just posted to close the topic and inform people that the problem was solved, but in fact, since some time ago, don’t know why, i havent been receiving replies to my topics, even in Yiiplayground’s topic when we (Giovanni and I) posted that there may have a bug in rendering widgets with CWidgetFactory theme set…
mdomba:
as i haven’t found any way to pass dblclick as trigger to the built-in ajax, i’ve made it in jquery as follows: