javascript - resize jqgrid when parent div changes with an event -
i have dashboard several jqgrids. dashboard windows can individually expand fill page while other windows disapear. there toggle shrink back
if have jqgrid, in window, when expands grid width expand , shrink well.
is there way bind grid parent div can expand , shrink?
sample far not work.
$('.portlet-content').bind('resize', function() { jquery("#gridconfirm").setgridwidth($('.portlet-content').width()-5, true); }).trigger('resize');
you should bind jquery.resize window
object. try one
$(window).resize(function() { $("#gridconfirm").jqgrid('setgridwidth', $('.portlet-content').width()-5, true); }).trigger('resize');
Comments
Post a Comment