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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -