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.

Hi,

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

http://www.yiiframework.com/doc/guide/1.1/en/form.table

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)

http://www.yiiframework.com/forum/index.php/topic/54405-show-pdfdocx-files-in-clistview/page__pid__250397#entry250397