php - Yii - updating fields within CListView -
is possible update individual fields within clistview? looking solution lets users edit records in view of table records.
an example user has list of associated appointments. might want mark appointment priority low/high without going update view itself.
are there widgets other clistview sort of function?
sorry, ran bit of dead end researching this, may have missed blindingly obvious.
there no miracle solution, depend on task want accomplish;
if want have buttons change task priority, can use ajax link (http://www.yiiframework.com/doc/api/1.1/chtml#ajaxlink-detail).
if want edit text inline, can use combination of jeditable (http://www.appelsiini.net/projects/jeditable) , ajax edit text, update content of item.
by way, quick reminder can partially render view string (a php variable, is) renderpartial method. render updated clistview item , return ajax callback update content.
happy coding!
Comments
Post a Comment