Yii Framework Forum: How To Retain Form Values After Search - Yii Framework Forum

Jump to content

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

How To Retain Form Values After Search Rate Topic: -----

#1 User is offline   vidhya 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 13-August 13

Posted 10 October 2013 - 04:01 AM

Hi ,

I have a form with 2 text fields and dropdown box to perform search operation on a grid.
Am able to perform the search but not able to retain the values of the textbox and drop down after clicking on search button.Attached File  controller.php (2.85K)
Number of downloads: 3Attached File  viewFile.php (5.45K)
Number of downloads: 4

Kindly help me to solve this issue.

Thanks & Regards,
Vidhya
0

#2 User is offline   chandran 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 488
  • Joined: 08-October 12
  • Location:Austria

Posted 10 October 2013 - 04:13 AM

Hi vidhya,

You have to make some changes inside actionadmin method

before render method call you should set all the values in $model which you want to retain in admin screen.

Thanks
chandran nepolean
Thanks
chandran nepolean

My own extension:
http://www.yiiframew...sion/ejqueryte/

My wiki
http://www.yiiframew...checkboxcolumn/

If it work dont hesitate to click +1 button
1

#3 User is offline   vidhya 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 13-August 13

Posted 10 October 2013 - 05:06 AM

Hi Chandran,

Thank you. It helped me to solve the issue :)

Thanks & Regards,
Vidhya
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