Yii Framework Forum: Datagrid Bootstrap Row Value - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Datagrid Bootstrap Row Value Rate Topic: -----

#1 User is offline   Sergio_HW 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 30-December 13

Posted 08 January 2014 - 06:59 AM

Hi everyone, I am doing a datagrid with bootstrap but I need the id of the selected row to create the item, what i want to do is select 2 rows of 2 different datagrids, and when i click in "create" save that 2 ids in the table.

how can I do that?

<div class="row">
		<?php echo $form->labelEx($model,'zf_locales_local_id'); ?>
		<?php
			$locales = new ZfLocales;
			$this->widget('bootstrap.widgets.TbGridView',
				array(
				'type'=>'striped bordered condensed',
				'dataProvider'=>$locales->search(),
					'filter' => $locales,
				'template'=>"{items}\n{pager}",
				'columns'=>array(
							
					array('name'=>'local_num', 'header'=>'Local'),
					array('name'=>'local_tipo', 'header'=>'Tipo'),
					array('name'=>'local_estado', 'header'=>'Estado'), 
				),
			));
		?> 
		<?php echo $form->error($model,'zf_locales_local_id'); ?>
	</div>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users