Displaying 91-100 of 100 result(s).
NameLogin DateCompanyAge
W
Whitehead, Jamal B.2012-03-23Lycos56W
William, Quincy Y.2012-03-26Macromedia45W
Williams, Charity B.2012-03-24Sibelius57W
Willis, Sydnee B.2012-03-25Macromedia40W
Wise, Hamish W.2012-03-23Microsoft29W
Wolf, Bethany J.2012-03-26Lycos44W
Wolf, Zachary S.2012-03-23Sibelius47W
Wolfe, Isabelle E.2012-03-25Cakewalk66W
Wyatt, Neville A.2012-03-23Chami46W
Wyatt, Nola K.2012-03-23Chami41W
View:
    $this->widget('ext.groupgridview.GroupGridView', array(
      'id' => 'grid1',
      'dataProvider' => $dp,
      'extraRowColumns' => array('firstLetter'),
      'extraRowExpression' => '"<b style=\"font-size: 3em; color: green\">".substr($data->name, 0, 1)."</b>"',
      'columns' => array(
        'name',
        'login_date',
        'company',
        'age',
        array(
           'name' => 'firstLetter',
           'value' => 'substr($data->name, 0, 1)',
           'headerHtmlOptions' => array('style' => 'display: none'),
           'htmlOptions' => array('style' => 'display: none'),
        )
      ),
    ));
Controller:
    public function actionExtraRowExpr()
    {
        $dp = new CActiveDataProvider('User', array(
            'sort'=>array( 
               'attributes' => array('name'),
               'defaultOrder' => 'name',
            ),
            'pagination' => array(
               'pagesize' => 30,
            ),
        )); 
        
        $this->render('extrarowexpr', array('dp' => $dp));
    }  
CSS:
    /* grid border */
    .grid-view table.items th, .grid-view table.items td {
        border: 1px solid gray !important;
    } 

    /* disable selection for extrarows */     
    .grid-view td.extrarow {
       background: none repeat scroll 0 0 #F8F8F8; 
    }