Dropdownlist Update Model Attribute Value In Cgridview

Can I changed the value of model attribute after I select from dropdown in CGridview? If so, how? Meaning, if I choose value from dropdownlist then my model attribute will automatically contain the new chosen value and save it to my database. Hope you can help me. Thank you.

Not in the standard CGridView, it doesn’t do inline editing. Take a look at the extensions for an editable Grid.


What are you trying to achieve? are you trying to save filter in cgridview?

How about saving multiple record in just one form?

check this


X-editable yii extension works like a charm

Thank you KonApaz!

Thankyou skworden :)

You’re welcome. Also, if you use it make sure you have a validation rule for every item or it won’t render. If you have any questions you can send me a message.

I use it in my manage products file update / product update seen here (last pic)