[eluser]xzela[/eluser]
you could probably write your own next() function to get all of the next ids
Code:
$this->load->model('client_model')
$data['client_ids'] = $this->client_model->getClientIds();
then, location the current id and walk up/down the array tree based on where you're at.
it could work.