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

Jump to content

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

Confirm In Gridview For Update? Rate Topic: -----

#1 User is offline   n-r 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 266
  • Joined: 19-April 13
  • Location:iran

Posted 08 May 2013 - 04:14 AM

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

#2 User is offline   Fabrizio Caldarelli 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,025
  • Joined: 21-March 13
  • Location:Rome, Italy

Posted 08 May 2013 - 04:22 AM

Extends CButtonColumn column
Yii2 by example: my book about Yii2
https://www.packtpub...nt/yii2-example
0

#3 User is offline   n-r 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 266
  • Joined: 19-April 13
  • Location:iran

Posted 08 May 2013 - 11:13 PM

View PostFabrizio Caldarelli, on 08 May 2013 - 04:22 AM, said:

Extends CButtonColumn column



thanks, But I've done it before and now I want to define Confirm for UPDATE button.
0

#4 User is offline   PeRoChAk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 589
  • Joined: 26-November 10
  • Location:Sialkot, Pakistan

Posted 09 May 2013 - 02:05 AM

You need to define a class for the view button and then use jquery to confirm

<a href="/update&id=10" class="updatebtn">Update</a>
<script>
$(document).ready(function(){
 $('.updatebtn').on('click',function(){
// your confirmation code....
});
});
</script>

Cheers
PeRoChAk
Cheap Domain & Hosting - Web & App Design - Web Application Development

My Page
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