Yii Framework Forum: Confirm For Update In Gridview? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Confirm For Update In Gridview?

#1 User is offline   n-r 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 102
  • Joined: 19-April 13

Posted 07 May 2013 - 07:01 AM

hi my friends
how defind 1 confirm ingridview for update button??
thanks
0

#2 User is offline   rei 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 321
  • Joined: 10-November 10

Posted 12 May 2013 - 12:46 AM

I think that would be something like:

array(
  'class'=>'CButtonColumn',
  'buttons'=>array(
     'update'=>array(
        'url'=>...,
        'click'=>'function () {
	   if (confirm("...") != true)
             return false;
        }',
     )
  )
)

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users