This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

saleh.asadi.work19498
saleh.asadi.work19498

Hi, I'm going to reorder my model items with ajax call and i want to refresh list after success, what should I do? is there any method to refresh list?

MarvinDurot
MarvinDurot

You can call the listRefresh() method (provided by the ListController behavior) in your AJAX handler.

public function onSomething()
{
  ...
  $this->listRefresh();
}
saleh.asadi.work19498
saleh.asadi.work19498

MarvinDurot said:

You can call the listRefresh() method (provided by the ListController behavior) in your AJAX handler.

public function onSomething()
{
 ...
 $this->listRefresh();
}

Thank you.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.