Yii_wiki_204_using-cjuidialog-to-edit-rows-in-a-cgridview (via _php tutorial

Source: Internet
Author: User
/*** Using cjuidialog to edit rows in a Cgridview http://www.yiiframework.com/wiki/204/using-cjuidialog-to-edit-rows-in -a-cgridview translated by PHP Siege Division Http://blog.csdn.net/phpgcs Scenario Solution Column hyperlink Javascript function * *//*** background Scenario ***/I have here a series of clients/events belong to the Cgridview, on each line (eventclient), I want to achieve fast editing eventclient    dialog box.  My approach is based on this wiki http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model//*** solution solution ***/First based on    Wiki 145 After doing all the work, then to modify our Cgridview:column hyperlink for each column, set the _updatecomment_url property to the desired URL in the JS function.          Array (' name ' = ' comment ', ' header ' = ' Comments ', ' type ' = ' raw ', ' value ' = ' chtml::link ' ( ($data ["comment"]? $data ["comment"]: "(comment)"), "", Array (\ ' style\ ' =>\ ' Cursor:po Inter                    Text-decoration:underline;\ ', \ ' onclick\ ' =>\ ' {updatecomment._updatecomment_url= ' \ '.  Yii::app ()->createurl ("Eventclient/updatecomment", Array ("id" =                  $data ["id"])). \ ' ";                  Updatecomment (); $ ("#dialogComment"). Dialog ("Open");}        \ ')), Javascript function on the same page we will invoke the Updatecomment () method of this action included in.

http://www.bkjia.com/PHPjc/477117.html www.bkjia.com true http://www.bkjia.com/PHPjc/477117.html techarticle /*** Using cjuidialog to edit rows in a Cgridview http://www.yiiframework.com/wiki/204/ Using-cjuidialog-to-edit-rows-in-a-cgridview translated by PHP Siege Division http://blog.csdn.net/ ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.