I have a problem in switching tabs. I am displaying two different grids in each tab, the grids content is generated dynamically upon request. The problem is, when I click second tab and then first, the first tab content is getting refreshed and vice versa.
I am using container.element().innerHTML = pages[i].join("");. The container is not retaining the old data, for each click it is sending request and displaying. I want to send the request for the first click, from the second time onwards it should show the old data.