Yii Framework Forum: Cgridview - Primary Key Values As Array - Yii Framework Forum

Jump to content

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

Cgridview - Primary Key Values As Array Rate Topic: -----

#1 User is offline   Srinivasan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 22-February 11
  • Location:Trichy, TN, INDIA

Posted 13 October 2012 - 02:03 AM

Hi,

Want to do:

I want to show the VIEW in fancybox extention with Previous and Next link within fancybox, So I decide to pass following additional values in CButtonColumn's view link

1. keys
2. current

Keys
----
This is a array like (1,4,6,7,9,20) getting primary keys from current display records

Current
-------
This is current record position (initial 0)

Brief Description:
Just I want to view another records [without close and click another view link in CGridView] using previous next link of the view within fancy box like image gallary

Question:
To achieve this, How can I get primarykeys as array from CGridView and also get record serial numbers like 0,1,2...
Then
How I pass this as parameter in VIEW link of CGridView

Please help me
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