Yii list view update on radio button selection

In a model have 4 fields. id, name, address, status. In the list view showing a radio button list for displaying status. In the Listview i want to update the list based on the radio button selection. How it possible in Yii?

Radio button in list view

I am showing list of sting in list view formate, i used default list view and placed a radio button by using simple_list_item_single_choice. But this shown the Radio button in right side, i want to di

jquery how to set radio button list item based on another radio button selection asp.net c#

I have two radio button lists and would like to change the text of the list items in the second radio button list items based on a selection in the first radio button list. Getting the selected value

Android: Radio button in custom list view

I am developing an application in which I need to implement radio buttons in list view. I want to implement a list view having one radio button and two text view in each row. And one button Ok below



Selection (or radio) list in Table view using Xcode iOS?

I want to design an iPad interface that has a table view and I want to know how to make a selection (or radio) list in Table view using Xcode ? so I can select more than one cell in a time, like check

Angularjs: Update model when radio button selection changes

I’m using Angularjs and I have two radio buttons with the same name access and different model fields model.field1 and model.field2, so I need to update the model when selection change, initially mode

Radio button selection creates a dynamic drop down list

I am trying to create a drop down list that is dynamically populated depending on what selection is made in a group of radio buttons. I currently have a group of radio buttons names Applicability an

List view and radio button issue [duplicate]

Possible Duplicate: Getting an issue while checking the dynamically generated checkbox through list view I am developing an android app.. I have 2 radio buttons and 5 check boxes in my listview. If

Update Panel Only Updates Once Radio Button List Async Postback

I’m trying to use a radio button list to change some label texts in an update panel, but for whatever reason the SelectedIndexChanged event seems to only fire the first time and then never again. I’ve

Update drop down selection with radio button selection using jquery

So this is a follow up to this post. I need to replace some dropdown menus with radio buttons without modifying the HTML. In the post I linked earlier, someone came up with a really clever Jquery solu

show hide list items with radio button selection

I would like to show/hide list items depending on the radio button selected. i have 3 buttons, each should reveal a different set of fields (inside list items). for some reason, only the last one work

Answers

You can do this by:

array(
        'header' => 'Status',
        'name' => 'status',
        'value' => '($data->status == 0) ? "Yes" : "No"'
    ),

in the view file CGridview widget:like this

<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'users-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array( array(
    'header' => 'Status',
    'name' => 'status',
    'value' => '($data->status == 0) ? "Yes" : "No"'
),`