I use the bootstap Tab component and in the first call of the site i get what is shown in the thumbnail below.
When i reload the page the table works fine.
If rendered in invisible area grid cannot calculate sizes correctly, and the refresh is required.
Refresh the grid on tab opening:
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
$("#jsGrid").jsGrid("refresh");
});
If the tab is opened by default, just trigger event on ready:
$('a[data-toggle="tab"]:first').trigger("shown.bs.tab");
Thanks this are working fine. :-D
You are welcome!
thanks tabalinas , you are so great. Also thanks Julian-B90 to write your problem. I ran into the same issue.
thank you two.
Most helpful comment
If rendered in invisible area grid cannot calculate sizes correctly, and the refresh is required.
Refresh the grid on tab opening:
If the tab is opened by default, just trigger event on ready: