Tbbuttongroup Bootstrap Extension

Hi,

I am newbie to this YII framework. I started just 1 week before. This is nice framework, thanks for contributors. I have some question regarding TbButtonGroup.

I am making ajaxcall with TbButtonGroup radiobutton. Ajax is working fine but its not selecting the radio button. Please suggest regarding this.

I am using lefty layout. Following are view code

<?php $this->widget(‘bootstrap.widgets.TbButtonGroup’, array(

			'type' =&gt; 'primary', // 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'


			'toggle' =&gt; 'checkbox', // 'checkbox' or 'radio'


			'size'=&gt;'small',


			'buttons' =&gt; array(


array('buttonType'=&gt;'ajaxLink','label'=&gt;'&lt;30','url'=&gt;Yii::app()-&gt;createUrl('site/ajax30'), 


'ajaxOptions' =&gt; array (


	'update'=&gt;'#sideMenu'


),'active'=&gt;(Yii::app()-&gt;controller-&gt;id == 'site'? true: false)),


array('buttonType'=&gt;'ajaxLink','label'=&gt;'&gt;60','url'=&gt;Yii::app()-&gt;createUrl('site/ajax60'), 


'ajaxOptions' =&gt; array (


	'update'=&gt;'#sideMenu'


),'active'=&gt;(Yii::app()-&gt;controller-&gt;id=='site' ? true: false)),


array('buttonType'=&gt;'ajaxLink','label'=&gt;'&gt;90','url'=&gt;Yii::app()-&gt;createUrl('site/ajax30'), 'ajaxOptions' =&gt; array ('update'=&gt;'#sideMenu')),


			),


		));


		?&gt;

//Ajax portion

<div id="sideMenu">

&lt;?php &#036;this-&gt;renderPartial('//_sidemenu'); ?&gt;

</div>

//This is _sidemenu.php content

<?php

if(isset(&#036;this-&gt;sidebarmenu))


{


	&#036;this-&gt;widget('zii.widgets.CMenu', array(


		'activeCssClass'=&gt;'submenu-active',


		'activateParents'=&gt;true,


		'activateItems'=&gt;true,


		'htmlOptions'=&gt;array(


				'class'=&gt;'box'


		),


		'items'=&gt;&#036;this-&gt;sidebarmenu,


	));


}


//echo &#036;myValue

?>

I want to select 30EC or 60EC or 90EC after ajaxcall

3323

bootstrap.png

Any help will be appreciated.

Thanks

chandran nepolean

I’m sorry to dig out this old thread, however, I have exactly the same problem as described here.

@chandran: did you solve the issue in the meantime? Any other Ideas?

Thanks in advance and regards

Daniel

Hi,

I solved this problem, by changing page design.I dont know about your page design. May be post your code…I will let you know, is there any possible solution.

Thanks

chandran nepolean