Datatable and tabs question

Datatable and tabs question

sumitsince1985sumitsince1985 Posts: 1Questions: 0Answers: 0
edited December 2013 in General
Hello, I have 2 tabs and 2 datatable in 1 JSP, I have 2 questions to ask:
1) on onLoad of this page jsp, I want to load tab 1 and datatable 1's data with it. But by default it loads data for both datatables, can you tell me how can I prevent this to happen by default, and only call datatable 2's data after user clicks on tab 2?

2) In both my datatables, I am making server side ajax calls to send and receive data. Suppose I am on Tab 1 and I click on Tab 2, I dont see any call made in the network panel of firebug. I want to change this behavior, when I switch among tabs, I want to call the controller for that particular datatable, and fetch latest data for that datatable. Can you also help me on this one ?

Thanks in advance.
This discussion has been closed.