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'); }); }
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
Post a Comment