Gridview pagination and PJax

Hey there

We have gridview#1 with expandablerow(by kartik-v)

6454

expand.png

After expanding row with ajax(renderAjax) we receive that model information with another gridview#2(including pagination)

However after going to gridview#2 second page pjax is being sent and gridview#1 code is being replaced with ajax data, how to make so it would replace gridview#2 ?