javascript - Bug when next tab with JsGrid -


why jsgrid presentation bug when click @ tab next? try destroy e , raise jsgrid , not solved.

 $('a[href="#prestador"]').on('show.bs.tab',function (e) {         $("#nota_prestador").jsgrid("destroy");         creategrid('nota_prestador',data,'cpf/cnpj tomador');     });     } 

enter image description here

rendered in hidden container (not opened tab in case), js-grid cannot calculate size properly. have call refresh on tab open event:

$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {   $("#jsgrid").jsgrid("refresh"); }); 

checkout issue on project github page: https://github.com/tabalinas/jsgrid/issues/49


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -