Now, each time growing up! release the vs. 0.3 of marvelous grid!! fast and easy configuration, you never waste time writing tables! it's support multiactions on grid selecting with checkbox, it will continue growing!!
protected/extensionsattributes: set of grid columns:
$this->widget('application.extensions.bcoregrid.BCoreGridWidget', array( 'models'=>$models, 'pages'=>$pages, 'sort'=>$sort, 'row_controller'=>'usuarios', 'row_active'=>true, 'row_actionclick'=>'update', 'row_owner'=>'usuario', 'attributes'=>array( array( 'type'=>'update', 'title'=>'U', 'width'=>'30px', ), array( 'type'=>'delete', 'title'=>'D', 'width'=>'30px', ), array( 'type'=>'show', 'title'=>'D', 'width'=>'30px', ), array( 'type'=>'publish', 'field_pub'=>'publish', 'title'=>'P', 'width'=>'30px', ), array( 'name'=>'user', 'title'=>'User', 'width'=>'180px', 'align'=>'center', ), array( 'name'=>'name', 'title'=>'Name', 'width'=>'250px', 'css'=>'light', ), array( 'name'=>'lastname', 'title'=>'Last Name', 'width'=>'350px', ), ) ) );
Total 8 comments
I got this error
Fatal error: Call to a member function link() on a non-object in protected/extensions/bcoregrid/views/list.php on line 10
><?php echo $sort->link($attributes[$a]['name'],utf8_encode($attributes[$a]['title']));?> <?php } ?>PHP Error Description
Undefined index: name Source File /protected/extensions/bcoregrid/views/list.php(10)
00001: <?php echo CHtml::beginForm('','POST',array('name'=>$idgrid,'id'=>$idgrid)); 00002: $css_main=$css; 00003: ?> 00004:
<
table class="<?php echo $css; ?>"> 00005:
00006: <?php if($isMultiple) { ?><?php echo CHtml::hiddenField($idgrid."chk_true",0).CHtml::checkBox("multi", false); ?><?php } ?> 00007: <?php for($a=0;$a 00010: ><?php echo $sort->link($attributes[$a]['name'],utf8_encode($attributes[$a]['title']));?> 00011: <?php } ?> 00012: 00013: <?php 00014: $totalreg =0; 00015: foreach($models as $n=>$model): 00016: $totalreg++; 00017: ?> 00018: 00019: <?php if($isMultiple) { ?> <?php echo CHtml::checkBox("cid[]", false, array ("id"=>"reg".$idgrid.$totalreg,"value"=>$model->$id)); ?><?php }?> 00020: <?php for($a=0;$a<count($attributes);$a++) { 00021: $align="left"; $css=''; $width=''; $click=""; 00022: $data=($attributes[$a]['name']!='')?$model->$attributes[$a]['name']:"";I am trying to use your tools but got this error name method not found
><?php echo $sort->link($attributes[$a]['name'],utf8_encode($attributes[$a]['title']));?>tell me what don't understand and i'll try to help you. Actually, i'm working in the new version, the grid will run under json and new features...
Can you please update your document? It will really help me if you do that.
Hey, I want to use your tool. But not working. Can you plz update your document?
thanks, your opinion is important, i'm making the changes! :)
old school JS code ;)
maybe better to use jquery here?
for a simple tasks like "to highlight row" etc - better to use CSS
Leave a comment
Please login to leave your comment.