Yii Framework Forum: Problems With Filters - Yii Framework Forum

Jump to content

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

Problems With Filters

#1 User is offline   Vinod Agarwal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 08-August 13

Posted 13 August 2013 - 08:49 AM

Hey , I have a cgridview in a form. Additionally I added a submit button to perform action on selected row. My problem is that when I use filter. The whole form get submitted and goes to its action , which I have set on different page.
0

#2 User is offline   PeRoChAk 

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

Posted 13 August 2013 - 09:46 AM

Share your code...

I suggest that you need to use Ajax in your CGridview and set content URL different then page current url.

$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,
    'ajaxUrl'=>'Your ajax content url for the data provide'
));

Cheers
Perochak
Web Design - Logo Design - Application Development

My Blog | Forums Comparison
1

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